pygui: clear throughput labels when disabling throughput

This commit is contained in:
Blake Harnden 2020-06-23 14:48:27 -07:00
parent 7215f852b8
commit 60d9fe2026
3 changed files with 10 additions and 2 deletions

View file

@ -997,6 +997,10 @@ class CanvasGraph(tk.Canvas):
)
self.tag_raise(tags.NODE)
def clear_throughputs(self) -> None:
for edge in self.edges.values():
edge.clear_middle_label()
def scale_graph(self) -> None:
for nid, canvas_node in self.nodes.items():
img = None