Skip to content

Commit

Permalink
fix: nested widgets cannot be completely destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaokang2022 committed Oct 28, 2024
1 parent 4623707 commit 81dc5cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tkintertools/core/virtual.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 81dc5cb

Please sign in to comment.