consolidated logic for drawing edge labels based on link to be contained within the edge class itself

This commit is contained in:
Blake Harnden 2019-12-18 16:51:05 -08:00
parent ccb433a32d
commit 1884cda271
6 changed files with 80 additions and 94 deletions

View file

@ -129,7 +129,7 @@ class CanvasNode:
else:
self.canvas.coords(edge.id, x1, y1, x, y)
self.canvas.throughput_draw.move(edge)
edge.link_info.recalculate_info()
edge.update_labels()
for edge in self.wireless_edges:
x1, y1, x2, y2 = self.canvas.coords(edge.id)