-
Notifications
You must be signed in to change notification settings - Fork 0
/
UserDefinedSteps_child_UI.py
147 lines (141 loc) · 6.58 KB
/
UserDefinedSteps_child_UI.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# Form implementation generated from reading ui file 'C:/Users/Xueyong Lu/AppData/Local/Temp/UserDefinedSteps_childNdLZPZ.ui'
#
# Created by: PyQt6 UI code generator 6.4.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt6 import QtCore, QtGui, QtWidgets
import resources_rc
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(279, 315)
Dialog.setStyleSheet("")
self.gridLayout_4 = QtWidgets.QGridLayout(Dialog)
self.gridLayout_4.setObjectName("gridLayout_4")
self.gridLayout_3 = QtWidgets.QGridLayout()
self.gridLayout_3.setObjectName("gridLayout_3")
self.frame = QtWidgets.QFrame(parent=Dialog)
self.frame.setMinimumSize(QtCore.QSize(190, 0))
self.frame.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
self.frame.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
self.frame.setObjectName("frame")
self.gridLayout = QtWidgets.QGridLayout(self.frame)
self.gridLayout.setContentsMargins(0, 0, 0, 0)
self.gridLayout.setObjectName("gridLayout")
self.groupBox = QtWidgets.QGroupBox(parent=self.frame)
self.groupBox.setMinimumSize(QtCore.QSize(180, 0))
self.groupBox.setStyleSheet("QGroupBox {\n"
" \n"
" font: 57 9pt \"Open Sans Medium\";\n"
"}")
self.groupBox.setObjectName("groupBox")
self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox)
self.gridLayout_2.setObjectName("gridLayout_2")
self.listWidget = QtWidgets.QListWidget(parent=self.groupBox)
self.listWidget.setMinimumSize(QtCore.QSize(170, 220))
self.listWidget.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.listWidget.setStyleSheet("QListWidget::item {\n"
" margin-top: 5px;\n"
"}\n"
"")
self.listWidget.setObjectName("listWidget")
item = QtWidgets.QListWidgetItem()
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
item.setFont(font)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":icon_/const_icon.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
item.setIcon(icon)
self.listWidget.addItem(item)
item = QtWidgets.QListWidgetItem()
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
item.setFont(font)
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":icon_/ramp_icon.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
item.setIcon(icon1)
self.listWidget.addItem(item)
item = QtWidgets.QListWidgetItem()
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
item.setFont(font)
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap(":icon_/stepped_icon.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
item.setIcon(icon2)
self.listWidget.addItem(item)
item = QtWidgets.QListWidgetItem()
icon3 = QtGui.QIcon()
icon3.addPixmap(QtGui.QPixmap(":icon_/pulse_icon.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
item.setIcon(icon3)
self.listWidget.addItem(item)
item = QtWidgets.QListWidgetItem()
icon4 = QtGui.QIcon()
icon4.addPixmap(QtGui.QPixmap(":icon_/bolus_icon.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
item.setIcon(icon4)
self.listWidget.addItem(item)
item = QtWidgets.QListWidgetItem()
font = QtGui.QFont()
font.setPointSize(9)
font.setBold(False)
font.setWeight(50)
font.setStrikeOut(False)
font.setKerning(True)
font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
item.setFont(font)
icon5 = QtGui.QIcon()
icon5.addPixmap(QtGui.QPixmap(":icon_/concentration_icon.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
item.setIcon(icon5)
self.listWidget.addItem(item)
item = QtWidgets.QListWidgetItem()
icon6 = QtGui.QIcon()
icon6.addPixmap(QtGui.QPixmap(":icon_/gradient_icon.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
item.setIcon(icon6)
self.listWidget.addItem(item)
item = QtWidgets.QListWidgetItem()
font = QtGui.QFont()
font.setUnderline(False)
item.setFont(font)
icon7 = QtGui.QIcon()
icon7.addPixmap(QtGui.QPixmap(":icon_/autofill_icon.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
item.setIcon(icon7)
self.listWidget.addItem(item)
self.gridLayout_2.addWidget(self.listWidget, 0, 0, 1, 1)
self.gridLayout.addWidget(self.groupBox, 0, 0, 1, 1)
self.buttonBox = QtWidgets.QDialogButtonBox(parent=self.frame)
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
self.buttonBox.setObjectName("buttonBox")
self.gridLayout.addWidget(self.buttonBox, 1, 0, 1, 1)
self.gridLayout_3.addWidget(self.frame, 0, 0, 1, 1)
self.gridLayout_4.addLayout(self.gridLayout_3, 0, 0, 1, 1)
self.retranslateUi(Dialog)
self.buttonBox.accepted.connect(Dialog.accept) # type: ignore
self.buttonBox.rejected.connect(Dialog.reject) # type: ignore
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
self.groupBox.setTitle(_translate("Dialog", "Steps"))
__sortingEnabled = self.listWidget.isSortingEnabled()
self.listWidget.setSortingEnabled(False)
item = self.listWidget.item(0)
item.setText(_translate("Dialog", "Constant rate"))
item = self.listWidget.item(1)
item.setText(_translate("Dialog", "Ramp rate"))
item = self.listWidget.item(2)
item.setText(_translate("Dialog", "Stepped rate"))
item = self.listWidget.item(3)
item.setText(_translate("Dialog", "Pulse flow"))
item = self.listWidget.item(4)
item.setText(_translate("Dialog", "Bolus delivery"))
item = self.listWidget.item(5)
item.setText(_translate("Dialog", "Concentration delivery"))
item = self.listWidget.item(6)
item.setText(_translate("Dialog", "Gradient"))
item = self.listWidget.item(7)
item.setText(_translate("Dialog", "Autofill"))
self.listWidget.setSortingEnabled(__sortingEnabled)