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

Small fixes to docstrings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/registry/qt.py

    r11285 r11286  
    2525 
    2626class QtWidgetDiscovery(QObject, WidgetDiscovery): 
    27     """Qt interface class for widget discovery. 
     27    """ 
     28    Qt interface class for widget discovery. 
    2829    """ 
    2930    # Discovery has started 
     
    5657 
    5758class QtWidgetRegistry(QObject, WidgetRegistry): 
    58     """A QObject wrapper for `WidgetRegistry` 
     59    """ 
     60    A QObject wrapper for `WidgetRegistry` 
    5961 
    6062    A QStandardItemModel instance containing the widgets in 
     
    113115 
    114116    def model(self): 
    115         """Return the widget descriptions in a Qt Item Model instance 
     117        """ 
     118        Return the widget descriptions in a Qt Item Model instance 
    116119        (QStandardItemModel). 
    117120 
     
    133136 
    134137    def action_for_widget(self, widget): 
    135         """Return the QAction instance for the widget (can 
    136         be a string or a WidgetDescription instance). 
     138        """ 
     139        Return the QAction instance for the widget (can be a string or 
     140        a WidgetDescription instance). 
    137141 
    138142        """ 
     
    141145 
    142146    def create_action_for_item(self, item): 
    143         """Create a QAction instance for the widget description item. 
     147        """ 
     148        Create a QAction instance for the widget description item. 
    144149        """ 
    145150        name = item.text() 
     
    162167 
    163168    def _insert_category(self, desc): 
    164         """Override to update the item model and emit the signals. 
     169        """ 
     170        Override to update the item model and emit the signals. 
    165171        """ 
    166172        priority = desc.priority 
     
    176182 
    177183    def _insert_widget(self, category, desc): 
    178         """Override to update the item model and emit the signals. 
     184        """ 
     185        Override to update the item model and emit the signals. 
    179186        """ 
    180187        assert(isinstance(category, CategoryDescription)) 
     
    195202 
    196203    def _cat_desc_to_std_item(self, desc): 
    197         """Create a QStandardItem for the category description. 
     204        """ 
     205        Create a QStandardItem for the category description. 
    198206        """ 
    199207        item = QStandardItem() 
     
    226234 
    227235    def _widget_desc_to_std_item(self, desc, category): 
    228         """Create a QStandardItem for the widget description. 
     236        """ 
     237        Create a QStandardItem for the widget description. 
    229238        """ 
    230239        item = QStandardItem(desc.name) 
Note: See TracChangeset for help on using the changeset viewer.