[英]Ensure thread running independently of tkinter mainloop doesn't access an element which no longer exists
我正在創建一個 tkinter 應用程序,並且我想在一組特定的線程運行時禁用某些 GUI 元素。 基本上一個按鈕啟動所有線程,它們被添加到一個列表中,該列表是名為Form的 class 的成員。 我有一個單獨的線程,它是 class 成員,並且不斷檢查線程列表以查看它是否為空; 只要列表中至少有一個 ...