Iterate over tuple() when deleting items (#1062)

Fixes #1061
This commit is contained in:
lantz
2021-10-07 15:49:03 -07:00
committed by GitHub
parent 57294d013e
commit 9edbb3b4a3
+1 -1
View File
@@ -1607,7 +1607,7 @@ class MiniEdit( Frame ):
def newTopology( self ):
"New command."
for widget in self.widgetToItem:
for widget in tuple( self.widgetToItem ):
self.deleteItem( self.widgetToItem[ widget ] )
self.hostCount = 0
self.switchCount = 0