Untitled
unknown
java
2 years ago
14 kB
1
Indexable
Never
elf.source_frame = QtWidgets.QFrame(self.centralwidget) self.source_frame.setAutoFillBackground(True) self.source_frame.setStyleSheet("background-color: rgb(255, 25, 255);\n" "border-radius: 10px;") self.source_frame.setObjectName("source_frame") self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.source_frame) self.verticalLayout_9.setObjectName("verticalLayout_9") self.source_label = QtWidgets.QLabel(self.source_frame) self.source_label.setStyleSheet("background-color: rgb(255, 255, 255);\n" "font: bold 16pt \"Ubuntu Mono\";") self.source_label.setAlignment(QtCore.Qt.AlignCenter) self.source_label.setObjectName("source_label") self.verticalLayout_9.addWidget(self.source_label) self.horizontalLayout_source_1 = QtWidgets.QHBoxLayout() self.horizontalLayout_source_1.setObjectName("horizontalLayout_source_1") spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_source_1.addItem(spacerItem2) self.temperature_label = QtWidgets.QLabel(self.source_frame) self.temperature_label.setStyleSheet("font: 12pt \"Ubuntu Mono\";\n" "") self.temperature_label.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter) self.temperature_label.setObjectName("temperature_label") self.horizontalLayout_source_1.addWidget(self.temperature_label) self.temperature_input = QtWidgets.QComboBox(self.source_frame) self.temperature_input.setToolTip("") self.temperature_input.setStyleSheet("border: 1px solid rgb(186, 189, 182);\n" "border-radius: 2px;") self.temperature_input.setObjectName("temperature_input") self.horizontalLayout_source_1.addWidget(self.temperature_input) spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_source_1.addItem(spacerItem3) self.pm1_label = QtWidgets.QLabel(self.source_frame) font = QtGui.QFont() font.setFamily("Ubuntu Mono") font.setPointSize(12) font.setBold(False) font.setItalic(False) font.setWeight(50) self.pm1_label.setFont(font) self.pm1_label.setStyleSheet("font: 12pt \"Ubuntu Mono\";\n" "") self.pm1_label.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter) self.pm1_label.setObjectName("pm1_label") self.horizontalLayout_source_1.addWidget(self.pm1_label) self.pm1_input = QtWidgets.QComboBox(self.source_frame) self.pm1_input.setAutoFillBackground(False) self.pm1_input.setStyleSheet("border: 1px solid rgb(186, 189, 182);\n" "border-radius: 2px;") self.pm1_input.setInsertPolicy(QtWidgets.QComboBox.NoInsert) self.pm1_input.setObjectName("pm1_input") self.horizontalLayout_source_1.addWidget(self.pm1_input) spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_source_1.addItem(spacerItem4) self.horizontalLayout_source_1.setStretch(1, 2) self.horizontalLayout_source_1.setStretch(2, 1) self.horizontalLayout_source_1.setStretch(3, 2) self.horizontalLayout_source_1.setStretch(4, 2) self.horizontalLayout_source_1.setStretch(5, 1) self.verticalLayout_9.addLayout(self.horizontalLayout_source_1) self.horizontalLayout_source_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_source_4.setObjectName("horizontalLayout_source_4") spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_source_4.addItem(spacerItem5) self.pressure_label = QtWidgets.QLabel(self.source_frame) self.pressure_label.setStyleSheet("font: 12pt \"Ubuntu Mono\";\n" "\n" "") self.pressure_label.setObjectName("pressure_label") self.horizontalLayout_source_4.addWidget(self.pressure_label) self.pressure_input = QtWidgets.QComboBox(self.source_frame) self.pressure_input.setStyleSheet("border: 1px solid rgb(186, 189, 182);\n" "border-radius: 2px;") self.pressure_input.setObjectName("pressure_input") self.horizontalLayout_source_4.addWidget(self.pressure_input) spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_source_4.addItem(spacerItem6) self.pm25_label = QtWidgets.QLabel(self.source_frame) self.pm25_label.setStyleSheet("font: 12pt \"Ubuntu Mono\";\n" "") self.pm25_label.setObjectName("pm25_label") self.horizontalLayout_source_4.addWidget(self.pm25_label) self.pm25_input = QtWidgets.QComboBox(self.source_frame) self.pm25_input.setStyleSheet("border: 1px solid rgb(186, 189, 182);\n" "border-radius: 2px;") self.pm25_input.setObjectName("pm25_input") self.horizontalLayout_source_4.addWidget(self.pm25_input) spacerItem7 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_source_4.addItem(spacerItem7) self.horizontalLayout_source_4.setStretch(1, 2) self.horizontalLayout_source_4.setStretch(2, 1) self.horizontalLayout_source_4.setStretch(3, 2) self.horizontalLayout_source_4.setStretch(4, 2) self.horizontalLayout_source_4.setStretch(5, 1) self.verticalLayout_9.addLayout(self.horizontalLayout_source_4) self.horizontalLayout_source_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_source_5.setObjectName("horizontalLayout_source_5") spacerItem8 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_source_5.addItem(spacerItem8) self.humidity_label = QtWidgets.QLabel(self.source_frame) self.humidity_label.setStyleSheet("font: 12pt \"Ubuntu Mono\";\n" "\n" "") self.humidity_label.setObjectName("humidity_label") self.horizontalLayout_source_5.addWidget(self.humidity_label) self.humidity_input = QtWidgets.QComboBox(self.source_frame) self.humidity_input.setStyleSheet("border: 1px solid rgb(186, 189, 182);\n" "border-radius: 2px;") self.humidity_input.setObjectName("humidity_input") self.horizontalLayout_source_5.addWidget(self.humidity_input) spacerItem9 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_source_5.addItem(spacerItem9) self.pm10_label = QtWidgets.QLabel(self.source_frame) self.pm10_label.setStyleSheet("font: 12pt \"Ubuntu Mono\";\n" "") self.pm10_label.setObjectName("pm10_label") self.horizontalLayout_source_5.addWidget(self.pm10_label) self.pm10_input = QtWidgets.QComboBox(self.source_frame) self.pm10_input.setStyleSheet("border: 1px solid rgb(186, 189, 182);\n" "border-radius: 2px;") self.pm10_input.setObjectName("pm10_input") self.horizontalLayout_source_5.addWidget(self.pm10_input) spacerItem10 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_source_5.addItem(spacerItem10) self.horizontalLayout_source_5.setStretch(1, 2) self.horizontalLayout_source_5.setStretch(2, 1) self.horizontalLayout_source_5.setStretch(3, 2) self.horizontalLayout_source_5.setStretch(4, 2) self.horizontalLayout_source_5.setStretch(5, 1) self.verticalLayout_9.addLayout(self.horizontalLayout_source_5) self.horizontalLayout_source_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_source_6.setObjectName("horizontalLayout_source_6") spacerItem11 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_source_6.addItem(spacerItem11) self.station_temperature_label = QtWidgets.QLabel(self.source_frame) self.station_temperature_label.setStyleSheet("font: 12pt \"Ubuntu Mono\";\n" "") self.station_temperature_label.setObjectName("station_temperature_label") self.horizontalLayout_source_6.addWidget(self.station_temperature_label) self.station_temperature_input = QtWidgets.QComboBox(self.source_frame) self.station_temperature_input.setStyleSheet("border: 1px solid rgb(186, 189, 182);\n" "border-radius: 2px;") self.station_temperature_input.setObjectName("station_temperature_input") self.horizontalLayout_source_6.addWidget(self.station_temperature_input) spacerItem12 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_source_6.addItem(spacerItem12) self.power_label = QtWidgets.QLabel(self.source_frame) self.power_label.setStyleSheet("font: 12pt \"Ubuntu Mono\";\n" "") self.power_label.setObjectName("power_label") self.horizontalLayout_source_6.addWidget(self.power_label) self.power_input = QtWidgets.QComboBox(self.source_frame) self.power_input.setStyleSheet("border: 1px solid rgb(186, 189, 182);\n" "border-radius: 2px;") self.power_input.setObjectName("power_input") self.horizontalLayout_source_6.addWidget(self.power_input) spacerItem13 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_source_6.addItem(spacerItem13) self.horizontalLayout_source_6.setStretch(1, 2) self.horizontalLayout_source_6.setStretch(2, 1) self.horizontalLayout_source_6.setStretch(3, 2) self.horizontalLayout_source_6.setStretch(4, 2) self.horizontalLayout_source_6.setStretch(5, 1) self.verticalLayout_9.addLayout(self.horizontalLayout_source_6) self.horizontalLayout_set_temperature = QtWidgets.QHBoxLayout() self.horizontalLayout_set_temperature.setObjectName("horizontalLayout_set_temperature") spacerItem14 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_set_temperature.addItem(spacerItem14) self.set_station_temperature_label = QtWidgets.QLabel(self.source_frame) self.set_station_temperature_label.setStyleSheet("font: 12pt \"Ubuntu Mono\";\n" "") self.set_station_temperature_label.setObjectName("set_station_temperature_label") self.horizontalLayout_set_temperature.addWidget(self.set_station_temperature_label) self.set_station_temperature_input = QtWidgets.QTextEdit(self.source_frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.set_station_temperature_input.sizePolicy().hasHeightForWidth()) self.set_station_temperature_input.setSizePolicy(sizePolicy) self.set_station_temperature_input.setMaximumSize(QtCore.QSize(50, 30)) self.set_station_temperature_input.setStyleSheet("border: 1px solid rgb(186, 189, 182);\n" "border-radius: 2px;") self.set_station_temperature_input.setObjectName("set_station_temperature_input") self.horizontalLayout_set_temperature.addWidget(self.set_station_temperature_input) spacerItem15 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_set_temperature.addItem(spacerItem15) self.verticalLayout_9.addLayout(self.horizontalLayout_set_temperature) self.gridLayout.addWidget(self.source_frame, 2, 0, 2, 1) self.setLayout(self.gridLayout) print(self.gridLayout.rowCount()) self.source_label.setText("Źródła danych") self.temperature_label.setText("Temperatura") self.pm1_label.setText("Pm1") self.pressure_label.setText("Ciśnienie") self.pm25_label.setText("Pm2.5") self.humidity_label.setText("WIlgotność") self.pm10_label.setText("Pm10") self.station_temperature_label.setText("Temperatura czujnika") self.power_label.setText("Pobierana moc") self.set_station_temperature_label.setText("Docelowa temperatura czujnika")