我想把Tkinter里的东西从一个单独的线程里打包。我不断得到一个RuntimeError。具体来说:RuntimeError: main thread is not in main loop def protocol(self, scheduleName): #ran as thread
print("Getting courses")我希望能够将
我目前正在使用curio,并试图将tkinter的回调转换为与异步代码兼容的东西。我已经解决了大部分问题,事件等待,协议,但唯一剩下的就是更新窗口。tkinter.Tk.update方法在调整窗口大小时阻塞。这会扭曲我的异步代码,因为一切都必须在不阻塞的情况下运行。我不能在另一个线程中运行这个线程,如。import tkinter
from time import