Fix crash in progress dialog,
@@ -52,7 +52,6 @@ from thonny.ui_utils import select_sequence, show_dialog, CommonDialogEx
from tkinter import messagebox
import warnings
import re
-import traceback
WINDOWS_EXE = "python.exe"
@@ -1569,6 +1568,11 @@ class BlockingDialog(CommonDialogEx):
):
self._send_interrupt()
+ def destroy(self):
+ get_workbench().unbind("InlineResponse", self._on_response)
+ get_workbench().unbind("InlineProgress", self._on_progress)
+ super().destroy()
+
def get_frontend_python():
# TODO: deprecated (name can be misleading)
