diff --git a/tkintertools/core/virtual.py b/tkintertools/core/virtual.py index 79b8b76b..65a289ae 100644 --- a/tkintertools/core/virtual.py +++ b/tkintertools/core/virtual.py @@ -644,7 +644,7 @@ def destroy(self) -> None: for component in self.components: component.destroy() - for widget in self.widgets: + for widget in tuple(self.widgets): widget.destroy() def detect(self, x: int, y: int) -> bool: