rdbende / Sun-Valley-ttk-examples

Example apps for my stunning Sun Valley ttk theme!
https://github.com/rdbende/Sun-Valley-ttk-theme/
GNU General Public License v3.0
145 stars 13 forks source link

TclError: can't invoke "winfo" command: application has been destroyed #9

Open NicolasCadieux opened 9 months ago

NicolasCadieux commented 9 months ago

Hi, I am new at everything GUI related so thanks for the demo. What is the "TclError: can't invoke "winfo" command: application has been destroyed" I get if I quit que GUI and try to restart the script? If I restart the python console, all is good. Thanks Nicolas

NicolasCadieux commented 9 months ago

File ~\anaconda3\envs\Python39\lib\site-packages\sv_ttk__init__.py:62 in set_theme cls.tcl.call("set_theme", theme.lower())

TclError: can't invoke "winfo" command: application has been destroyed

It's got something to do with sv_ttk.set_theme("light") line as I don't get the error if the line is commented out.