Skip to content

Instantly share code, notes, and snippets.

@eagleEggs
Created December 15, 2018 00:07
Show Gist options
  • Save eagleEggs/6fb254180c8167333959cb2ee152cd45 to your computer and use it in GitHub Desktop.
Save eagleEggs/6fb254180c8167333959cb2ee152cd45 to your computer and use it in GitHub Desktop.
Need to investigate these errors (happens rarely and usually after running threaded tests):
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\tkinter\__init__.py", line 329, in __del__
if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\tkinter\__init__.py", line 1992, in wm_withdraw
return self.tk.call('wm', 'withdraw', self._w)
_tkinter.TclError: bad window path name ".!toplevel17"
@eagleEggs
Copy link
Author

File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\tkinter_init_.py", line 1992, in wm_withdraw
return self.tk.call('wm', 'withdraw', self._w)
_tkinter.TclError: bad window path name ".!toplevel17"

- resolved by changing all unique window reads to their own unique values.

Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\tkinter_init_.py", line 329, in del
if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop

- this, doesn't happen anymore...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment