Changeset 8188:8ead244fe4c8 in orange


Ignore:
Timestamp:
08/16/11 19:36:24 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
3253082ee3b0c64d17ca1ed6e2d65f242410a530
Message:

Use old-style and signals in FloatSlider

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/OWGUI.py

    r8180 r8188  
    20392039        self.setScale(min_value, max_value, step) 
    20402040        QObject.connect(self, SIGNAL("valueChanged(int)"), self.sendValue) 
    2041      
    2042     valueChangedFloat = pyqtSignal(['double']) 
    20432041         
    20442042    def update(self): 
     
    20532051    def sendValue(self, slider_value): 
    20542052        value = min(max(slider_value * self.step, self.min_value), self.max_value) 
    2055         self.valueChangedFloat.emit(value) 
     2053        self.emit(SIGNAL("valueChangedFloat(double)"), value) 
    20562054         
    20572055    def setValue(self, value): 
Note: See TracChangeset for help on using the changeset viewer.