Ignore:
Timestamp:
04/09/13 12:19:18 (13 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Small fixes to widget development documentation.

File:
1 edited

Legend:

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

    r11424 r11439  
    5656learner, and use a trick allowed in Orange that we can simply store 
    5757this as a new attribute to the learning object. By default, Orange 
    58 would give a warning of the type :: 
     58would give a warning of the type:: 
    5959 
    6060    c:\Python23\Lib\site-packages\orange\OrangeWidgets\Test\OWLearningCurveC.py:269: 
     
    6262      setattr(learner, "curve", curve) 
    6363 
    64 but we surpress such warnings with a line :: 
     64but we surpress such warnings with a line:: 
    6565 
    6666    warnings.filterwarnings("ignore", ".*builtin attribute.*", orange.AttributeWarning) 
     67 
     68 
     69.. warning:: 
     70 
     71   This is a very bad design. Please do **not** store widget data in the 
     72   input objects. 
     73 
    6774 
    6875in the initialization part of the widget. In this way, each learner 
     
    157164            l.isSelected = i in self.selectedLearners 
    158165 
    159 The complete code of this widget is available :download:`here <OWLearningCurveC.py>`.  
     166The complete code of this widget is available :download:`here <OWLearningCurveC.py>`. 
    160167This is almost like a typical 
    161168widget that is include in a standard Orange distribution, with a 
Note: See TracChangeset for help on using the changeset viewer.