Ignore:
Timestamp:
02/19/13 15:01:43 (14 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Added rst documentation for the canvas gui package.

Fixing docstrings in the process.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/gui/tooltree.py

    r11228 r11366  
    1919 
    2020class ToolTree(QWidget): 
    21     """A ListView like presentation of a list of actions. 
     21    """ 
     22    A ListView like presentation of a list of actions. 
     23 
    2224    """ 
    2325    triggered = Signal(QAction) 
     
    7274 
    7375    def setTitle(self, title): 
    74         """Set the title 
     76        """ 
     77        Set the title 
    7578        """ 
    7679        if self.__title != title: 
     
    7982 
    8083    def title(self): 
    81         """Return the title of this tool tree. 
     84        """ 
     85        Return the title of this tool tree. 
    8286        """ 
    8387        return self.__title 
     
    8690 
    8791    def setIcon(self, icon): 
    88         """Set icon for this tool tree. 
     92        """ 
     93        Set icon for this tool tree. 
    8994        """ 
    9095        if self.__icon != icon: 
     
    9398 
    9499    def icon(self): 
    95         """Return the icon of this tool tree. 
     100        """ 
     101        Return the icon of this tool tree. 
    96102        """ 
    97103        return self.__icon 
     
    100106 
    101107    def setFlattened(self, flatten): 
    102         """Show the actions in a flattened view. 
     108        """ 
     109        Show the actions in a flattened view. 
    103110        """ 
    104111        if self.__flattened != flatten: 
     
    113120 
    114121    def flattened(self): 
     122        """ 
     123        Are actions shown in a flattened tree (a list). 
     124        """ 
    115125        return self.__flattened 
    116126 
Note: See TracChangeset for help on using the changeset viewer.