Files
lbms_py/lbms/resources.py
T
2026-10-11 20:37:14 -04:00

14 lines
265 B
Python

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]