pygui changes to avoid deleting session and open xml race conditions, fix to reset canvas view options when creating a new session

This commit is contained in:
Blake Harnden 2020-05-01 14:13:44 -07:00
parent 1f1b1c7b65
commit f7281459ed
4 changed files with 12 additions and 8 deletions

View file

@ -133,6 +133,15 @@ class CanvasGraph(tk.Canvas):
# hide context
self.hide_context()
# reset view options to default state
self.show_node_labels.set(True)
self.show_link_labels.set(True)
self.show_grid.set(True)
self.show_annotations.set(True)
self.show_interface_names.set(False)
self.show_ip4s.set(True)
self.show_ip6s.set(True)
# delete any existing drawn items
for tag in tags.COMPONENT_TAGS:
self.delete(tag)