Closed Ethan-Ka closed 2 years ago
Quite a strange issue, I haven't seen this before with this theme.
Could you ensure that the directory structure is like this?
dir_path (you mentioned in the code)
|-> sun-valley.tcl
|-> theme
|-> light.tcl
|-> dark.tcl
|-> light
|-> many png files
|-> dark
|-> many png files
Actually, I recommend you to try out the sv_ttk
Python module instead: https://github.com/rdbende/Sun-Valley-ttk-theme/discussions/19 it's much easier to use the theme with it.
I might suggest replacing the directory separator from slash to backslash.
So in your case it would be:
# you should also change dir_path
window = Tk()
style = ttk.Style(window)
window.tk.call('source', (dir_path+'\sun-valley.tcl'))
style.theme_use('sun-valley-light')
code: