restructured imports from modules, created imports in __init__.py

This commit is contained in:
Tom Schimansky
2022-11-29 19:06:33 +01:00
parent 1254a39161
commit 03249110f3
38 changed files with 226 additions and 186 deletions

View File

@@ -0,0 +1,9 @@
from .theme_manager import ThemeManager
# load default blue theme
try:
ThemeManager.load_theme("blue")
except FileNotFoundError as err:
raise FileNotFoundError(f"{err}\n\nThe .json theme file for CustomTkinter could not be found.\n" +
f"If packaging with pyinstaller was used, have a look at the wiki:\n" +
f"https://github.com/TomSchimansky/CustomTkinter/wiki/Packaging#windows-pyinstaller-auto-py-to-exe")