Changeset 9029:2b8adf4b592d in orange


Ignore:
Timestamp:
09/27/11 13:05:43 (3 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
5e7dbed7ea6b8b84b76ca3fdc44ba6909526f75b
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Visualize Qt/OWNxCanvasQt.py

    r8992 r9029  
    326326        self.master = master 
    327327        self.parent = parent 
    328          
     328        self.NodeItem = NodeItem 
    329329        self.graph = None 
    330  
     330         
    331331        self.circles = [] 
    332332        self.freezeNeighbours = False 
     
    631631        self.networkCurve.remove_nodes(list(remove_nodes)) 
    632632         
    633         nodes = dict((v, NodeItem(v, x=pos[v][0], y=pos[v][1], parent=self.networkCurve)) for v in add_nodes) 
     633        nodes = dict((v, self.NodeItem(v, x=pos[v][0], y=pos[v][1], parent=self.networkCurve)) for v in add_nodes) 
    634634        self.networkCurve.add_nodes(nodes) 
    635635        nodes = self.networkCurve.nodes() 
     
    687687        #add nodes 
    688688        #self.vertices_old = [(None, []) for v in self.graph] 
    689         vertices = dict((v, NodeItem(v, parent=self.networkCurve)) for v in self.graph) 
     689        vertices = dict((v, self.NodeItem(v, parent=self.networkCurve)) for v in self.graph) 
    690690        self.networkCurve.set_nodes(vertices) 
    691691                 
Note: See TracChangeset for help on using the changeset viewer.