modified wireless links to obtain colors based on connected network from the session, LinkData will no provide a color itself
This commit is contained in:
parent
42979f1bb3
commit
e2490dee4a
10 changed files with 33 additions and 22 deletions
|
@ -212,6 +212,8 @@ class CanvasGraph(tk.Canvas):
|
|||
edge = CanvasWirelessEdge(self, src.id, dst.id, src_pos, dst_pos, token)
|
||||
if link.label:
|
||||
edge.middle_label_text(link.label)
|
||||
if link.color:
|
||||
edge.color = link.color
|
||||
self.wireless_edges[token] = edge
|
||||
src.wireless_edges.add(edge)
|
||||
dst.wireless_edges.add(edge)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue