“RuntimeError: Calling Tcl from different appartment” tkinter and threading
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to implement GUI using threading and tkinter ( python 3.6 ). When I run GUIExecution.py, the following error occurs. " RuntimeError: Calling Tcl from different appartment " on self.root.mainloop() in base_gui_class.py I am implementing it on a class basis, and the three code files are as follows. The executable file is GUIExecution.py. I spent a lot of time trying to fix the error, but I have not been able to fix it yet. Please give a lot of advice. Additionally, if I run the following code in a python2 environment, it works fine