set cursor position manually in fit data parameter; closes #153

This commit is contained in:
Dominik Demuth 2023-11-23 18:40:56 +01:00
parent c7a21c72f2
commit 412708cecd

View File

@ -343,6 +343,7 @@ class ParameterSingleWidget(QtWidgets.QWidget):
def value(self, val): def value(self, val):
# self.value_line.setText(f'{float(val):.5g}') # self.value_line.setText(f'{float(val):.5g}')
self.value_line.setText(f'{val}') self.value_line.setText(f'{val}')
self.value_line.setCursorPosition(0)
def show_as_local_parameter(self, is_local: bool): def show_as_local_parameter(self, is_local: bool):
if is_local: if is_local: