Ignore:
File:
1 edited

Legend:

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

    r11408 r11424  
    4242categories. For instance, under windows and default settings, a 
    4343directory that stores all the widgets displayed in the Evaluate pane is 
    44 C:\Python23\Lib\site-packages\orange\OrangeWidgets\Evaluate. Figure 
     44*C:\\Python23\\Lib\\site-packages\\Orange\\OrangeWidgets\\Evaluate*. Figure 
    4545above shows that at the time of writing of this text there were five 
    4646widgets for evaluation of classifiers, and this is how my Evaluate 
     
    8080something like:: 
    8181 
    82     self.inputs = [("Test Data Set", ExampleTable, self.cdata), ("Learner", orange.Learner, self.learner, 0)] 
     82    self.inputs = [("Test Data Set", ExampleTable, self.cdata), 
     83                   ("Learner", orange.Learner, self.learner, 0)] 
    8384    self.outputs = [("Evaluation Results", orngTest.ExperimentResults)] 
    8485 
     
    9192now the following is important: 
    9293 
    93    -  Widgets are defined in a Python files. 
    94    - For Orange and Orange canvas to find them, they reside in subdirectories in OrangeWidgets directory of Orange installation. The name of the subdirectory matters, as this is the name of the widget category. Widgets in the same directory will be grouped in the same pane of widget toolbox in Orange Canvas. 
    95    - A file describing a widget starts with a header. This, given in sort of XMLish style, tells about the name, short description, location of an icon and priority of the widget. 
    96    - The sole role of priority is to specify the placement (order) of widgets in the Orange Canvas toolbox. 
    97    - Somewhere in the code (where we will learn later) there are two lines which tell which channels the widgets uses for communication. These, together with the header information, completely specify the widget as it is seen from the outside. 
     94   - Widgets are defined in a Python files. 
     95   - For Orange and Orange canvas to find them, they reside in subdirectories 
     96     in OrangeWidgets directory of Orange installation. The name of the 
     97     subdirectory matters, as this is the name of the widget category. Widgets 
     98     in the same directory will be grouped in the same pane of widget toolbox 
     99     in Orange Canvas. 
     100   - A file describing a widget starts with a header. This, given in sort of 
     101     XMLish style, tells about the name, short description, location of an 
     102     icon and priority of the widget. 
     103   - The sole role of priority is to specify the placement (order) of widgets 
     104     in the Orange Canvas toolbox. 
     105   - Somewhere in the code (where we will learn later) there are two lines 
     106     which tell which channels the widgets uses for communication. These, 
     107     together with the header information, completely specify the widget as it 
     108     is seen from the outside. 
    98109 
    99110Oh, by the way. Orange caches widget descriptions to achieve a faster 
Note: See TracChangeset for help on using the changeset viewer.