From 46f914323ec48b440f9f2600081dc45e183c6d7e Mon Sep 17 00:00:00 2001 From: Djalim Simaila Date: Wed, 10 May 2023 15:55:57 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style(UI=5FMainWindow.py):=20set?= =?UTF-8?q?=20x=5Fmean=20QDoubleSpinBox=20to=20read-only=20The=20x=5Fmean?= =?UTF-8?q?=20QDoubleSpinBox=20is=20now=20set=20to=20read-only=20to=20prev?= =?UTF-8?q?ent=20the=20user=20from=20changing=20its=20value.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/gui/pyqt/main_window/UI_MainWindow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/gui/pyqt/main_window/UI_MainWindow.py b/utils/gui/pyqt/main_window/UI_MainWindow.py index 4ac9872..dd7540d 100644 --- a/utils/gui/pyqt/main_window/UI_MainWindow.py +++ b/utils/gui/pyqt/main_window/UI_MainWindow.py @@ -114,7 +114,7 @@ class Ui_MainWindow(object): self.scrollArea.setWidgetResizable(True) self.scrollArea.setObjectName("scrollArea") self.scrollAreaWidgetContents = QtWidgets.QWidget() - self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, -179, 431, 907)) + self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 431, 907)) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) @@ -150,6 +150,7 @@ class Ui_MainWindow(object): self.x_mean_label.setObjectName("x_mean_label") self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.x_mean_label) self.x_mean = QtWidgets.QDoubleSpinBox(self.scrollAreaWidgetContents) + self.x_mean.setReadOnly(True) self.x_mean.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) self.x_mean.setDecimals(6) self.x_mean.setMinimum(-999999.0)