Changeset 11713:d2503813af19 in orange


Ignore:
Timestamp:
09/17/13 17:57:03 (7 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Cleanup the doc string indentation for use in tooltips.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/Data/OWFeatureConstructor.py

    r11096 r11713  
    1010import OWGUI, math, re 
    1111import random 
     12import inspect 
    1213 
    1314re_identifier = re.compile(r'([a-zA-Z_]\w*)|("[^"]+")') 
     
    8485        model = self.cbFuncs.model() 
    8586        for i, func in enumerate(sortedFuncs): 
    86             model.item(i + 1).setToolTip(AttrComputer.FUNCTIONS[func].__doc__) 
     87            model.item(i + 1).setToolTip( 
     88                inspect.getdoc(AttrComputer.FUNCTIONS[func]) 
     89            ) 
    8790         
    8891        hb = OWGUI.widgetBox(db, None, "horizontal", addSpace=True) 
Note: See TracChangeset for help on using the changeset viewer.