🎨 style(UI_MainWindow.py): set x_mean QDoubleSpinBox to read-only

The x_mean QDoubleSpinBox is now set to read-only to prevent the user from changing its value.
This commit is contained in:
Djalim Simaila 2023-05-10 15:55:57 +02:00
parent 283930b1b0
commit 46f914323e

View File

@ -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)