Ignore:
Timestamp:
03/19/13 19:36:52 (13 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixes for Widgets Development documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/extend-widgets/rst/graphing.rst

    r11049 r11408  
    9696axis plot using the same color. Developers are thus advised to use 
    9797:obj:`ColorPaletteHSV`, which is provided as a method within 
    98 :obj:`OWWidget` class. :obj:`ColorPaletteHSV` takes an 
     98:mod:`OWWidget` module. :obj:`ColorPaletteHSV` takes an 
    9999integer as an attribute, and returns a list of corresponding number of 
    100100colors. In our learning curve widget, we use it within a function that 
     
    121121 
    122122    self.cbox = OWGUI.widgetBox(self.controlArea, "Learners") 
    123     self.llb = OWGUI.listBox(self.cbox, self, "selectedLearners", selectionMode=QListWidget.MultiSelection, callback=self.learnerSelectionChanged) 
     123    self.llb = OWGUI.listBox(self.cbox, self, "selectedLearners", 
     124                             selectionMode=QListWidget.MultiSelection, 
     125                             callback=self.learnerSelectionChanged) 
    124126 
    125127    self.llb.setMinimumHeight(50) 
     
    142144 
    143145    def learnerSelectionChanged(self): 
    144         if self.blockSelectionChanges: return 
     146        if self.blockSelectionChanges: 
     147            return 
    145148        for (i,lt) in enumerate(self.learners): 
    146149            l = lt[1] 
     
    153156            l.isSelected = i in self.selectedLearners 
    154157 
    155 The complete code of this widget is available `here <OWLearningCurveC.py>`_.  
     158The complete code of this widget is available :download:`here <OWLearningCurveC.py>`.  
    156159This is almost like a typical 
    157160widget that is include in a standard Orange distribution, with a 
Note: See TracChangeset for help on using the changeset viewer.