Skip to content

Commit

Permalink
Print error when loading SV theme fails
Browse files Browse the repository at this point in the history
  • Loading branch information
qwertychouskie committed May 9, 2024
1 parent d206402 commit 2cac6db
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions REVHubInterface/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1118,12 +1118,15 @@ def initwindow():
mp.freeze_support()

xroot = tk.Tk()
#attempt to import the theme, fallack to default if fails

# Attempt to import and load the Sun Valley theme
try:
import sv_ttk
print('Loaded Tk theme: Sun Valley')
sv_ttk.set_theme("dark")
except:
print('Loaded Tk theme: Sun Valley')
except Exception as e:
# Print error, then fall back to default ttk theme
print(e)
pass

xroot.title('REV Hub Interface - Community Edition - v1.3.1')
Expand Down

0 comments on commit 2cac6db

Please sign in to comment.