2610.1 - First commit
This commit is contained in:
1 parent
1a247323f1
commit
d8d131e1c1
69 files changed
+2073
-2
No files matched your search
@@ -0,0 +1,13 @@
|
||||
from pathlib import Path
|
||||
|
||||
import tkinter as tk
|
||||
|
||||
RESOURCE_DIR = Path(__file__).resolve().parent / "resources"
|
||||
|
||||
_cache = {}
|
||||
|
||||
|
||||
def load_image(name):
|
||||
if name not in _cache:
|
||||
_cache[name] = tk.PhotoImage(file=str(RESOURCE_DIR / name))
|
||||
return _cache[name]
|
||||
Reference in new issue
Block a user