Changeset 8610:296aba0bcb7f in orange


Ignore:
Timestamp:
08/05/11 07:30:00 (3 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
0c3a5c4b690192d2ff655d48ac642f76f8182031
Message:
 
Location:
orange/OrangeWidgets/Prototypes
Files:
2 edited

Legend:

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

    r8603 r8610  
    9898        self.maxComponentEdgeWidth = 0 
    9999        self.items_matrix = None 
    100          
     100          
    101101        self.items = None 
    102102        self.links = None 
  • orange/OrangeWidgets/Prototypes/OWNxExplorerQt.py

    r8601 r8610  
    200200        ib = OWGUI.widgetBox(self.verticesTab, "General", orientation="vertical") 
    201201        OWGUI.checkBox(ib, self, 'networkCanvas.show_indices', 'Show indices', callback=self.networkCanvas.set_label_attributes) 
    202         OWGUI.checkBox(ib, self, 'labelsOnMarkedOnly', 'Show labels on marked vertices only', callback=(lambda: self._set_canvas_attr('labelsOnMarkedOnly', self.labelsOnMarkedOnly))) 
     202        OWGUI.checkBox(ib, self, 'labelsOnMarkedOnly', 'Show labels on marked vertices only', callback=(lambda: self.networkCanvas.networkCurve.set_labels_on_marked_only(self.labelsOnMarkedOnly))) 
    203203        self.networkCanvas.gui.antialiasing_check_box(ib) 
    204204        self.networkCanvas.gui.animations_check_box(ib) 
    205         OWGUI.checkBox(ib, self, 'showMissingValues', 'Show missing values', callback=(lambda: self._set_canvas_attr('showMissingValues', self.showMissingValues))) 
    206205         
    207206        ib = OWGUI.widgetBox(self.markTab, "Info", orientation="vertical") 
     
    960959    def _set_canvas_attr(self, attr, value): 
    961960        setattr(self.networkCanvas, attr, value) 
     961        self.networkCanvas.updateCanvas() 
     962     
     963    def _set_curve_attr(self, attr, value): 
     964        setattr(self.networkCanvas.networkCurve, attr, value) 
    962965        self.networkCanvas.updateCanvas() 
    963966                 
Note: See TracChangeset for help on using the changeset viewer.