changed scrollbar colors, added custom exception message for pyinstaller file problem

This commit is contained in:
Tom Schimansky
2022-06-20 23:44:35 +02:00
parent 43900c7fef
commit a7b175ae65
7 changed files with 58 additions and 34 deletions

View File

@@ -14,7 +14,15 @@ from .font_manager import FontManager
from .draw_engine import DrawEngine
AppearanceModeTracker.init_appearance_mode()
ThemeManager.load_theme("blue") # load default theme
# 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")
FontManager.init_font_manager()
# determine draw method based on current platform