Closed littlewhitecloud closed 1 year ago
^ |
What Tcl and Tk version are you using?
print(f"Tcl: {tkinter.TclVersion}")
print(f"Tk: {tkinter.TkVersion}")
Tcl & Tk Both 8.6
This is really strange. I cannot reproduce it, and I have never seen anybody with this error.
Does the issue still persist if you use sv_ttk
instead of this old and discouraged .tk.call()
method?
okay, i will use sv_ttk
thx
The problem arises again... And i use sv_ttk...
script is in my github:github.com/sadjok/Editor
It looks like you dont use sv_ttk: Can you try that?
i just move sv_ttk to my asset folder...
asset folder...:
sv.tcl & theme.py & theme folder
Try installing sv_ttk using pip install sv-ttk
in your terminal, and then import sv_ttk
in your code, and then sv_ttk.use_light_theme()
to start sv_ttk.
Hope this helps.
...It.emm.well.i just want to give up now :(
Or, how to make a function like sv_ttk changing the theme for the window every time when I change the theme in the Settings?(Almost sync?)
Well maybe require a app restart to chage the theme... sorry, i cant tkink about any other solutuon :(
Thanks for the answer, sorry for my interruption to you......
Hope who can solve it.... However, i am tired of it, i tried too many times too...... Each time, the same wrong shows.....
I was programming a project. I did:
And I made a function like this:
I want to make the program turn into dark mode, and I want theme into dark mode too. But I get a error, it is:
How can I change theme when it has already been loaded?