Changeset 10728:4e80c9933ef4 in orange


Ignore:
Timestamp:
04/03/12 15:39:04 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
rebase_source:
4b038a7daf671e949dd33ce43b5de081f4ed4804
Message:

Added decimals keyword argument to doubleSpin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/OWGUI.py

    r10608 r10728  
    265265         callback=None, debuggingEnabled = 1, controlWidth = None, callbackOnReturn = False, 
    266266         checked = "", checkCallback = None, posttext = None, addToLayout=True, alignment = Qt.AlignLeft, 
    267          keyboardTracking=True): #widget, master, value, min, max, step=1, box=None, label=None, labelWidth=None, orientation=None, tooltip=None, callback=None, controlWidth=None): 
     267         keyboardTracking=True, decimals=None): 
    268268    if box or label and not checked: 
    269269        b = widgetBox(widget, box, orientation) 
     
    285285 
    286286    wa = bi.control = DoubleSpinBoxWFocusOut(min, max, step, bi) 
     287 
     288    if decimals is not None: 
     289        wa.setDecimals(decimals) 
     290 
    287291    wa.setAlignment(alignment) 
    288292    wa.setKeyboardTracking(keyboardTracking) # If false it wont emit valueChanged signals while editing the text 
Note: See TracChangeset for help on using the changeset viewer.