Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception has occurred: TclError couldn't read file "./theme/light.tcl": no such file or directory #21

Closed
zSynctic opened this issue Jan 10, 2022 · 18 comments

Comments

@zSynctic
Copy link

No description provided.

@rdbende
Copy link
Owner

rdbende commented Jan 10, 2022

This issue has been fixed in September, I just forgot to make a new release for it. It should work with version 2.1.

@rdbende rdbende closed this as completed Jan 10, 2022
@zSynctic
Copy link
Author

How can I get version 2.1

@rdbende
Copy link
Owner

rdbende commented Jan 10, 2022

You can download the archive here: https://github.com/rdbende/Azure-ttk-theme/releases/tag/v2.1.0

@zSynctic
Copy link
Author

Ok thanks I will try that

@zSynctic
Copy link
Author

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

@rdbende
Copy link
Owner

rdbende commented Jan 10, 2022

You probably have specified a wrong path to the azure.tcl file.

@zSynctic
Copy link
Author

zSynctic commented Jan 10, 2022

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.

@rdbende
Copy link
Owner

rdbende commented Jan 10, 2022

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: #12 (comment)

@zSynctic
Copy link
Author

zSynctic commented Jan 10, 2022

image
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

@rdbende
Copy link
Owner

rdbende commented Jan 10, 2022

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.

@zSynctic
Copy link
Author

I added idk.py into azure-ttk-theme-2.1.0 folder but still it doesn't works

@zSynctic
Copy link
Author

image

@rdbende
Copy link
Owner

rdbende commented Jan 10, 2022

Then you should try what #12 did.

@zSynctic
Copy link
Author

image

@rdbende
Copy link
Owner

rdbende commented Jan 10, 2022

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.

@zSynctic
Copy link
Author

You mean like this?
image

@rdbende
Copy link
Owner

rdbende commented Jan 10, 2022

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.

@zSynctic
Copy link
Author

Oh ok thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants