File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -114,9 +114,9 @@ def _apply_step(self, value: float):
114
114
115
115
return value
116
116
117
- def _change_value (self , value : float ):
118
- # TODO changing the value itself should trigger this event
119
- # current problem is, that the property does not pass the old value to change listeners
117
+ def _set_value (self , value : float ):
118
+ # TODO changing the value itself should trigger `on_change` event
119
+ # current problem is, that the property does not pass the old value to listeners
120
120
if value < self .min_value :
121
121
value = self .min_value
122
122
elif value > self .max_value :
@@ -145,7 +145,7 @@ def norm_value(self):
145
145
def norm_value (self , value ):
146
146
"""Normalized value between 0.0 and 1.0"""
147
147
new_value = min (value * (self .max_value - self .min_value ) + self .min_value , self .max_value )
148
- self ._change_value (new_value )
148
+ self ._set_value (new_value )
149
149
150
150
@property
151
151
def _thumb_x (self ):
You can’t perform that action at this time.
0 commit comments