From 412708cecd510975e25f9d5bb366697a0d9b4b9a Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Thu, 23 Nov 2023 18:40:56 +0100 Subject: [PATCH] set cursor position manually in fit data parameter; closes #153 --- src/gui_qt/fit/fit_parameter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui_qt/fit/fit_parameter.py b/src/gui_qt/fit/fit_parameter.py index d0924a8..e4a72d2 100644 --- a/src/gui_qt/fit/fit_parameter.py +++ b/src/gui_qt/fit/fit_parameter.py @@ -343,6 +343,7 @@ class ParameterSingleWidget(QtWidgets.QWidget): def value(self, val): # self.value_line.setText(f'{float(val):.5g}') self.value_line.setText(f'{val}') + self.value_line.setCursorPosition(0) def show_as_local_parameter(self, is_local: bool): if is_local: