Changeset 8893:a2a79357ffc9 in orange


Ignore:
Timestamp:
09/02/11 14:38:42 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
ab22021d1d84218d7d17279f860a5de34820d43a
Message:

Fixed some compatibility problems with qwtSlider and the new FloatSlider.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/OWGUI.py

    r8737 r8893  
    727727 
    728728    connectControl(slider, master, value, callback, signal_signature, CallFrontHSlider(slider)) 
    729  
     729    # For compatibility with qwtSlider 
     730    slider.box = sliderBox 
    730731    if debuggingEnabled and hasattr(master, "_guiElements"): 
    731732        master._guiElements = getattr(master, "_guiElements", []) + [("hSlider", slider, value, minValue, maxValue, step, callback)] 
     
    20762077        self.step = step 
    20772078        self.update() 
     2079         
     2080    def setRange(self, minValue, maxValue, step=1.0): 
     2081        # For compatibility with qwtSlider 
     2082        self.setScale(minValue, maxValue, step) 
Note: See TracChangeset for help on using the changeset viewer.