Changeset 8880:e9e0d0cc89a0 in orange
 Timestamp:
 09/01/11 16:15:36 (3 years ago)
 Branch:
 default
 Convert:
 2f23e4e1d1c8d2f43cd8743d5421ef26985bc4dd
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

orange/OrangeWidgets/Visualize Qt/OWNxCanvasQt.py
r8860 r8880 29 29 30 30 class EdgeItem(orangeqt.EdgeItem): 31 def __init__(self, u=None, v=None, weight=1, links_index=0, label='', parent=None):31 def __init__(self, u=None, v=None, weight=1, links_index=0, arrows=None, label='', parent=None): 32 32 orangeqt.EdgeItem.__init__(self, u, v, parent) 33 33 self.set_weight(weight) 34 34 self.set_links_index(links_index) 35 self.set_arrows(arrows) 35 36 36 37 class NetworkCurve(orangeqt.NetworkCurve): … … 642 643 if self.graph.is_directed(): 643 644 edges = [EdgeItem(nodes[i], nodes[j], 644 self.graph[i][j].get('weight', 1), 0, 1, links_index, \645 self.graph[i][j].get('weight', 1), links_index, arrows=EdgeItem.ArrowV, \ 645 646 parent=self.networkCurve) for ((i, j), links_index) in \ 646 647 zip(new_edges, links_indices)] … … 652 653 elif self.graph.is_directed(): 653 654 edges = [EdgeItem(nodes[i], nodes[j], self.graph[i][j].get('weight', 1), \ 654 0, 1, parent=self.networkCurve) for (i, j) in new_edges]655 arrows=EdgeItem.ArrowV, parent=self.networkCurve) for (i, j) in new_edges] 655 656 else: 656 657 edges = [EdgeItem(nodes[i], nodes[j], self.graph[i][j].get('weight', 1), \ … … 711 712 if self.graph.is_directed(): 712 713 edges = [EdgeItem(vertices[i], vertices[j], 713 graph[i][j].get('weight', 1), 0, 1, links_index, \714 graph[i][j].get('weight', 1), links_index, arrows=EdgeItem.ArrowV, \ 714 715 parent=self.networkCurve) for ((i, j), links_index) in \ 715 716 zip(self.graph.edges(), links_indices)] … … 722 723 elif self.graph.is_directed(): 723 724 edges = [EdgeItem(vertices[i], vertices[j], 724 graph[i][j].get('weight', 1), 0, 1, parent=self.networkCurve) for (i, j) in self.graph.edges()]725 graph[i][j].get('weight', 1), arrows=EdgeItem.ArrowV, parent=self.networkCurve) for (i, j) in self.graph.edges()] 725 726 else: 726 727 edges = [EdgeItem(vertices[i], vertices[j],
Note: See TracChangeset
for help on using the changeset viewer.