Closed zSynctic closed 2 years ago
How can I get version 2.1
You can download the archive here: https://github.com/rdbende/Azure-ttk-theme/releases/tag/v2.1.0
Ok thanks I will try that
I get this issue now when I try to run the example.py: Exception has occurred: TclError couldn't read file "azure.tcl": no such file or directory
You probably have specified a wrong path to the azure.tcl
file.
It's the first time for me to use a theme so I don't know how to really use one I just downloaded the zip and extracted it into the folder where I'm doing tkinter.
If you have the azure.tcl
in the same directory, then it should work. Except if the editor you're using changes the working directory when running the file. Then you could check out this comment: https://github.com/rdbende/Azure-ttk-theme/issues/12#issuecomment-862441699
Do I need to get out everything in the folder out or what can I do? or should I use the same thing #12 did
The best solution is to write Azure-ttk-theme-2.1.0/azure.tcl
in the code, but it's also a solution to put idk.py
into Azure-ttk-theme-2.1.0
folder.
I added idk.py into azure-ttk-theme-2.1.0 folder but still it doesn't works
Then you should try what #12 did.
Instead of style.theme_use('azure')
you should use root.tk.call('set_theme', 'light')
to set the theme.
Or you can also use style.theme_use('light')
(or dark), but I don't recommend this way.
You mean like this?
Yes, but please check out the readme, where it is written that some styles changed names, and now you have to use Accent.TButton
instead of Accentbutton
.
Oh ok thank you
This issue has been fixed in September, I just forgot to make a new release for it. It should work with version 2.1.