-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathui_commandeditwnd.py
More file actions
195 lines (185 loc) · 10.7 KB
/
ui_commandeditwnd.py
File metadata and controls
195 lines (185 loc) · 10.7 KB
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'commandeditwnd.ui'
#
# Created by: PyQt5 UI code generator 5.12.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_CommandEditDialog(object):
def setupUi(self, CommandEditDialog):
CommandEditDialog.setObjectName("CommandEditDialog")
CommandEditDialog.resize(927, 419)
font = QtGui.QFont()
font.setPointSize(10)
CommandEditDialog.setFont(font)
self.gridLayout = QtWidgets.QGridLayout(CommandEditDialog)
self.gridLayout.setContentsMargins(25, 20, 20, 15)
self.gridLayout.setObjectName("gridLayout")
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.gridLayout.addItem(spacerItem, 4, 0, 1, 2)
self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
self.label_2 = QtWidgets.QLabel(CommandEditDialog)
self.label_2.setObjectName("label_2")
self.horizontalLayout_6.addWidget(self.label_2)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_6.addItem(spacerItem1)
self.gridLayout.addLayout(self.horizontalLayout_6, 2, 0, 1, 2)
spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.gridLayout.addItem(spacerItem2, 1, 0, 1, 1)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.label = QtWidgets.QLabel(CommandEditDialog)
self.label.setObjectName("label")
self.horizontalLayout.addWidget(self.label)
self.say = QtWidgets.QLineEdit(CommandEditDialog)
self.say.setObjectName("say")
self.horizontalLayout.addWidget(self.say)
spacerItem3 = QtWidgets.QSpacerItem(50, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem3)
self.label_4 = QtWidgets.QLabel(CommandEditDialog)
self.label_4.setObjectName("label_4")
self.horizontalLayout.addWidget(self.label_4)
self.thresholdSpin = QtWidgets.QSpinBox(CommandEditDialog)
self.thresholdSpin.setObjectName("thresholdSpin")
self.horizontalLayout.addWidget(self.thresholdSpin)
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem4)
self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 8)
self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
self.horizontalLayout_9.setObjectName("horizontalLayout_9")
self.oneExe = QtWidgets.QRadioButton(CommandEditDialog)
self.oneExe.setAutoExclusive(True)
self.oneExe.setObjectName("oneExe")
self.horizontalLayout_9.addWidget(self.oneExe)
spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_9.addItem(spacerItem5)
self.gridLayout.addLayout(self.horizontalLayout_9, 6, 0, 1, 1)
self.horizontalLayout_10 = QtWidgets.QHBoxLayout()
self.horizontalLayout_10.setObjectName("horizontalLayout_10")
self.continueExe = QtWidgets.QRadioButton(CommandEditDialog)
self.continueExe.setAutoExclusive(True)
self.continueExe.setObjectName("continueExe")
self.horizontalLayout_10.addWidget(self.continueExe)
spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_10.addItem(spacerItem6)
self.gridLayout.addLayout(self.horizontalLayout_10, 7, 0, 1, 1)
self.horizontalLayout_11 = QtWidgets.QHBoxLayout()
self.horizontalLayout_11.setObjectName("horizontalLayout_11")
self.repeatExe = QtWidgets.QRadioButton(CommandEditDialog)
self.repeatExe.setAutoExclusive(True)
self.repeatExe.setObjectName("repeatExe")
self.horizontalLayout_11.addWidget(self.repeatExe)
self.repeatCnt = QtWidgets.QSpinBox(CommandEditDialog)
self.repeatCnt.setMinimum(2)
self.repeatCnt.setObjectName("repeatCnt")
self.horizontalLayout_11.addWidget(self.repeatCnt)
self.label_3 = QtWidgets.QLabel(CommandEditDialog)
self.label_3.setObjectName("label_3")
self.horizontalLayout_11.addWidget(self.label_3)
spacerItem7 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_11.addItem(spacerItem7)
self.gridLayout.addLayout(self.horizontalLayout_11, 8, 0, 1, 1)
self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
self.horizontalLayout_7.setObjectName("horizontalLayout_7")
self.verticalLayout_5 = QtWidgets.QVBoxLayout()
self.verticalLayout_5.setObjectName("verticalLayout_5")
self.keyBut = QtWidgets.QPushButton(CommandEditDialog)
self.keyBut.setAutoDefault(False)
self.keyBut.setObjectName("keyBut")
self.verticalLayout_5.addWidget(self.keyBut)
self.mouseBut = QtWidgets.QPushButton(CommandEditDialog)
self.mouseBut.setAutoDefault(False)
self.mouseBut.setObjectName("mouseBut")
self.verticalLayout_5.addWidget(self.mouseBut)
self.pauseBut = QtWidgets.QPushButton(CommandEditDialog)
self.pauseBut.setAutoDefault(False)
self.pauseBut.setObjectName("pauseBut")
self.verticalLayout_5.addWidget(self.pauseBut)
self.otherBut = QtWidgets.QPushButton(CommandEditDialog)
self.otherBut.setAutoDefault(False)
self.otherBut.setObjectName("otherBut")
self.verticalLayout_5.addWidget(self.otherBut)
self.horizontalLayout_7.addLayout(self.verticalLayout_5)
self.actionsListWidget = QtWidgets.QListWidget(CommandEditDialog)
font = QtGui.QFont()
font.setPointSize(11)
self.actionsListWidget.setFont(font)
self.actionsListWidget.setObjectName("actionsListWidget")
self.horizontalLayout_7.addWidget(self.actionsListWidget)
self.verticalLayout_6 = QtWidgets.QVBoxLayout()
self.verticalLayout_6.setObjectName("verticalLayout_6")
self.upBut = QtWidgets.QPushButton(CommandEditDialog)
self.upBut.setAutoDefault(False)
self.upBut.setObjectName("upBut")
self.verticalLayout_6.addWidget(self.upBut)
self.downBut = QtWidgets.QPushButton(CommandEditDialog)
self.downBut.setAutoDefault(False)
self.downBut.setObjectName("downBut")
self.verticalLayout_6.addWidget(self.downBut)
self.editBut = QtWidgets.QPushButton(CommandEditDialog)
self.editBut.setAutoDefault(False)
self.editBut.setObjectName("editBut")
self.verticalLayout_6.addWidget(self.editBut)
self.deleteBut = QtWidgets.QPushButton(CommandEditDialog)
self.deleteBut.setAutoDefault(False)
self.deleteBut.setObjectName("deleteBut")
self.verticalLayout_6.addWidget(self.deleteBut)
self.horizontalLayout_7.addLayout(self.verticalLayout_6)
self.gridLayout.addLayout(self.horizontalLayout_7, 3, 0, 1, 7)
self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
self.horizontalLayout_8.setObjectName("horizontalLayout_8")
self.asyncChk = QtWidgets.QCheckBox(CommandEditDialog)
self.asyncChk.setChecked(True)
self.asyncChk.setObjectName("asyncChk")
self.horizontalLayout_8.addWidget(self.asyncChk)
spacerItem8 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_8.addItem(spacerItem8)
self.gridLayout.addLayout(self.horizontalLayout_8, 5, 0, 1, 3)
self.horizontalLayout_12 = QtWidgets.QHBoxLayout()
self.horizontalLayout_12.setSpacing(20)
self.horizontalLayout_12.setObjectName("horizontalLayout_12")
spacerItem9 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_12.addItem(spacerItem9)
self.ok = QtWidgets.QPushButton(CommandEditDialog)
self.ok.setMinimumSize(QtCore.QSize(130, 0))
self.ok.setAutoDefault(False)
self.ok.setObjectName("ok")
self.horizontalLayout_12.addWidget(self.ok)
self.cancel = QtWidgets.QPushButton(CommandEditDialog)
self.cancel.setMinimumSize(QtCore.QSize(130, 0))
self.cancel.setAutoDefault(False)
self.cancel.setObjectName("cancel")
self.horizontalLayout_12.addWidget(self.cancel)
self.gridLayout.addLayout(self.horizontalLayout_12, 12, 0, 1, 3)
self.retranslateUi(CommandEditDialog)
QtCore.QMetaObject.connectSlotsByName(CommandEditDialog)
def retranslateUi(self, CommandEditDialog):
_translate = QtCore.QCoreApplication.translate
CommandEditDialog.setWindowTitle(_translate("CommandEditDialog", "Command Edit Dialog"))
self.label_2.setText(_translate("CommandEditDialog", "When this command excutes, do the following sequence:"))
self.label.setText(_translate("CommandEditDialog", "When I say :"))
self.label_4.setText(_translate("CommandEditDialog", "threshold: "))
self.oneExe.setText(_translate("CommandEditDialog", "This command executes once"))
self.continueExe.setText(_translate("CommandEditDialog", "This command repeats continuously"))
self.repeatExe.setText(_translate("CommandEditDialog", "This command repeats"))
self.label_3.setText(_translate("CommandEditDialog", "times"))
self.keyBut.setText(_translate("CommandEditDialog", "Key Press"))
self.mouseBut.setText(_translate("CommandEditDialog", "Mouse"))
self.pauseBut.setText(_translate("CommandEditDialog", "Pause"))
self.otherBut.setText(_translate("CommandEditDialog", "Other"))
self.upBut.setText(_translate("CommandEditDialog", "Up"))
self.downBut.setText(_translate("CommandEditDialog", "Down"))
self.editBut.setText(_translate("CommandEditDialog", "Edit"))
self.deleteBut.setText(_translate("CommandEditDialog", "Delete"))
self.asyncChk.setText(_translate("CommandEditDialog", "Allow other commands to execute while this one is running"))
self.ok.setText(_translate("CommandEditDialog", "OK"))
self.cancel.setText(_translate("CommandEditDialog", "Cancel"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
CommandEditDialog = QtWidgets.QDialog()
ui = Ui_CommandEditDialog()
ui.setupUi(CommandEditDialog)
CommandEditDialog.show()
sys.exit(app.exec_())