Changeset 8672:f4248d005d1a in orange


Ignore:
Timestamp:
08/12/11 13:29:06 (3 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
a99cf31c55ce0fa3c937a860af89d1b0556faf0a
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Prototypes/OWNxCanvasQt.py

    r8652 r8672  
    1616from plot.owpoint import * 
    1717from orngScaleScatterPlotData import * 
    18 import orangeplot 
    19  
    20 class NodeItem(orangeplot.NodeItem): 
     18import orangeqt 
     19 
     20class NodeItem(orangeqt.NodeItem): 
    2121    def __init__(self, index, x=None, y=None, parent=None): 
    22         orangeplot.NodeItem.__init__(self, index, OWPoint.Ellipse, Qt.blue, 5, parent) 
     22        orangeqt.NodeItem.__init__(self, index, OWPoint.Ellipse, Qt.blue, 5, parent) 
    2323        if x is not None: 
    2424            self.set_x(x) 
     
    2626            self.set_y(y) 
    2727         
    28 class EdgeItem(orangeplot.EdgeItem): 
     28class EdgeItem(orangeqt.EdgeItem): 
    2929    def __init__(self, u=None, v=None, weight=1, links_index=0, label='', parent=None): 
    30         orangeplot.EdgeItem.__init__(self, u, v, parent) 
     30        orangeqt.EdgeItem.__init__(self, u, v, parent) 
    3131        self.set_weight(weight) 
    3232        self.set_links_index(links_index) 
    3333 
    34 class NetworkCurve(orangeplot.NetworkCurve): 
     34class NetworkCurve(orangeqt.NetworkCurve): 
    3535    def __init__(self, parent=None, pen=QPen(Qt.black), xData=None, yData=None): 
    36         orangeplot.NetworkCurve.__init__(self, parent) 
     36        orangeqt.NetworkCurve.__init__(self, parent) 
    3737        self.name = "Network Curve" 
    3838         
    3939    def fr(self, steps, weighted=False, smooth_cooling=False): 
    40         orangeplot.NetworkCurve.fr(self, steps, weighted, smooth_cooling) 
     40        orangeqt.NetworkCurve.fr(self, steps, weighted, smooth_cooling) 
    4141       
    4242    def set_node_sizes(self, values={}, min_size=0, max_size=0): 
    43         orangeplot.NetworkCurve.set_node_sizes(self, values, min_size, max_size) 
     43        orangeqt.NetworkCurve.set_node_sizes(self, values, min_size, max_size) 
    4444       
    4545#    def move_selected_nodes(self, dx, dy): 
Note: See TracChangeset for help on using the changeset viewer.