GUI: added a force_update-function to number_line_edit.py
This commit is contained in:
@@ -64,6 +64,11 @@ class NumberLineEdit(QLineEdit):
|
||||
self.saved_value = val
|
||||
self.setText(self.to_string(val))
|
||||
|
||||
def force_update_value(self, val: float):
|
||||
# Always update text and saved_value
|
||||
self.saved_value = val
|
||||
self.setText(self.to_string(val))
|
||||
|
||||
@Slot(float, float)
|
||||
def update_limits(self, min_val: float, max_val: float):
|
||||
self.validator.setRange(min_val, max_val, self.decimal_count)
|
||||
|
||||
Reference in New Issue
Block a user