-
-
Notifications
You must be signed in to change notification settings - Fork 1k
/
UIView.py
286 lines (220 loc) · 13.1 KB
/
UIView.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
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'UIView.ui'
##
## Created by: Qt User Interface Compiler version 5.15.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide6.QtCore import *
from PySide6.QtGui import *
from PySide6.QtWidgets import *
class Ui_UIView(object):
def setupUi(self, UIView):
if not UIView.objectName():
UIView.setObjectName(u"UIView")
UIView.resize(652, 476)
icon = QIcon()
icon.addFile(u":/pic/Mondrian.png", QSize(), QIcon.Normal, QIcon.Off)
UIView.setWindowIcon(icon)
self.centralwidget = QWidget(UIView)
self.centralwidget.setObjectName(u"centralwidget")
self.groupBox = QGroupBox(self.centralwidget)
self.groupBox.setObjectName(u"groupBox")
self.groupBox.setGeometry(QRect(370, 10, 271, 191))
self.gridLayout_3 = QGridLayout(self.groupBox)
self.gridLayout_3.setObjectName(u"gridLayout_3")
self.gridLayout_3.setContentsMargins(0, 0, 0, 0)
self.choice_stop = QComboBox(self.groupBox)
self.choice_stop.setObjectName(u"choice_stop")
sizePolicy = QSizePolicy(QSizePolicy.Minimum, QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.choice_stop.sizePolicy().hasHeightForWidth())
self.choice_stop.setSizePolicy(sizePolicy)
self.gridLayout_3.addWidget(self.choice_stop, 2, 1, 1, 1)
self.choice_extension = QComboBox(self.groupBox)
self.choice_extension.setObjectName(u"choice_extension")
sizePolicy.setHeightForWidth(self.choice_extension.sizePolicy().hasHeightForWidth())
self.choice_extension.setSizePolicy(sizePolicy)
self.gridLayout_3.addWidget(self.choice_extension, 4, 1, 1, 1)
self.label_stop = QLabel(self.groupBox)
self.label_stop.setObjectName(u"label_stop")
self.gridLayout_3.addWidget(self.label_stop, 2, 0, 1, 1)
self.label_language = QLabel(self.groupBox)
self.label_language.setObjectName(u"label_language")
self.gridLayout_3.addWidget(self.label_language, 3, 0, 1, 1)
self.choice_start = QComboBox(self.groupBox)
self.choice_start.setObjectName(u"choice_start")
sizePolicy.setHeightForWidth(self.choice_start.sizePolicy().hasHeightForWidth())
self.choice_start.setSizePolicy(sizePolicy)
self.gridLayout_3.addWidget(self.choice_start, 0, 1, 1, 1)
self.choice_record = QComboBox(self.groupBox)
self.choice_record.setObjectName(u"choice_record")
sizePolicy.setHeightForWidth(self.choice_record.sizePolicy().hasHeightForWidth())
self.choice_record.setSizePolicy(sizePolicy)
self.gridLayout_3.addWidget(self.choice_record, 1, 1, 1, 1)
self.label_record = QLabel(self.groupBox)
self.label_record.setObjectName(u"label_record")
self.gridLayout_3.addWidget(self.label_record, 1, 0, 1, 1)
self.choice_language = QComboBox(self.groupBox)
self.choice_language.setObjectName(u"choice_language")
sizePolicy.setHeightForWidth(self.choice_language.sizePolicy().hasHeightForWidth())
self.choice_language.setSizePolicy(sizePolicy)
self.gridLayout_3.addWidget(self.choice_language, 3, 1, 1, 1)
self.label_extension = QLabel(self.groupBox)
self.label_extension.setObjectName(u"label_extension")
self.gridLayout_3.addWidget(self.label_extension, 4, 0, 1, 1)
self.label_start_key = QLabel(self.groupBox)
self.label_start_key.setObjectName(u"label_start_key")
self.gridLayout_3.addWidget(self.label_start_key, 0, 0, 1, 1)
self.horizontalLayoutWidget = QWidget(self.centralwidget)
self.horizontalLayoutWidget.setObjectName(u"horizontalLayoutWidget")
self.horizontalLayoutWidget.setGeometry(QRect(10, 210, 361, 41))
self.horizontalLayout = QHBoxLayout(self.horizontalLayoutWidget)
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.horizontalLayout.setSizeConstraint(QLayout.SetDefaultConstraint)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.btrecord = QPushButton(self.horizontalLayoutWidget)
self.btrecord.setObjectName(u"btrecord")
sizePolicy.setHeightForWidth(self.btrecord.sizePolicy().hasHeightForWidth())
self.btrecord.setSizePolicy(sizePolicy)
self.horizontalLayout.addWidget(self.btrecord)
self.btrun = QPushButton(self.horizontalLayoutWidget)
self.btrun.setObjectName(u"btrun")
sizePolicy.setHeightForWidth(self.btrun.sizePolicy().hasHeightForWidth())
self.btrun.setSizePolicy(sizePolicy)
self.horizontalLayout.addWidget(self.btrun)
self.btpauserecord = QPushButton(self.horizontalLayoutWidget)
self.btpauserecord.setObjectName(u"btpauserecord")
self.btpauserecord.setEnabled(False)
sizePolicy.setHeightForWidth(self.btpauserecord.sizePolicy().hasHeightForWidth())
self.btpauserecord.setSizePolicy(sizePolicy)
self.horizontalLayout.addWidget(self.btpauserecord)
self.verticalLayoutWidget = QWidget(self.centralwidget)
self.verticalLayoutWidget.setObjectName(u"verticalLayoutWidget")
self.verticalLayoutWidget.setGeometry(QRect(10, 260, 631, 161))
self.verticalLayout = QVBoxLayout(self.verticalLayoutWidget)
self.verticalLayout.setObjectName(u"verticalLayout")
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.tnumrd = QLabel(self.verticalLayoutWidget)
self.tnumrd.setObjectName(u"tnumrd")
self.verticalLayout.addWidget(self.tnumrd)
self.textlog = QTextEdit(self.verticalLayoutWidget)
self.textlog.setObjectName(u"textlog")
self.textlog.setEnabled(True)
sizePolicy.setHeightForWidth(self.textlog.sizePolicy().hasHeightForWidth())
self.textlog.setSizePolicy(sizePolicy)
self.textlog.setReadOnly(True)
self.verticalLayout.addWidget(self.textlog)
self.formLayoutWidget_3 = QWidget(self.centralwidget)
self.formLayoutWidget_3.setObjectName(u"formLayoutWidget_3")
self.formLayoutWidget_3.setGeometry(QRect(420, 220, 221, 31))
self.formLayout_3 = QFormLayout(self.formLayoutWidget_3)
self.formLayout_3.setObjectName(u"formLayout_3")
self.formLayout_3.setContentsMargins(0, 0, 0, 0)
self.label_volume = QLabel(self.formLayoutWidget_3)
self.label_volume.setObjectName(u"label_volume")
self.formLayout_3.setWidget(0, QFormLayout.LabelRole, self.label_volume)
self.volumeSlider = QSlider(self.formLayoutWidget_3)
self.volumeSlider.setObjectName(u"volumeSlider")
self.volumeSlider.setOrientation(Qt.Horizontal)
self.formLayout_3.setWidget(0, QFormLayout.FieldRole, self.volumeSlider)
self.groupBox_2 = QGroupBox(self.centralwidget)
self.groupBox_2.setObjectName(u"groupBox_2")
self.groupBox_2.setGeometry(QRect(10, 10, 348, 191))
self.gridLayout_4 = QGridLayout(self.groupBox_2)
self.gridLayout_4.setObjectName(u"gridLayout_4")
self.gridLayout_4.setContentsMargins(0, 0, 0, 0)
self.choice_theme = QComboBox(self.groupBox_2)
self.choice_theme.setObjectName(u"choice_theme")
sizePolicy.setHeightForWidth(self.choice_theme.sizePolicy().hasHeightForWidth())
self.choice_theme.setSizePolicy(sizePolicy)
self.gridLayout_4.addWidget(self.choice_theme, 4, 1, 1, 1)
self.label_execute_interval = QLabel(self.groupBox_2)
self.label_execute_interval.setObjectName(u"label_execute_interval")
self.gridLayout_4.addWidget(self.label_execute_interval, 2, 0, 1, 1)
self.label_execute_speed = QLabel(self.groupBox_2)
self.label_execute_speed.setObjectName(u"label_execute_speed")
self.gridLayout_4.addWidget(self.label_execute_speed, 3, 0, 1, 1)
self.label_run_times = QLabel(self.groupBox_2)
self.label_run_times.setObjectName(u"label_run_times")
self.gridLayout_4.addWidget(self.label_run_times, 1, 0, 1, 1)
self.label_theme = QLabel(self.groupBox_2)
self.label_theme.setObjectName(u"label_theme")
self.gridLayout_4.addWidget(self.label_theme, 4, 0, 1, 1)
self.label_script = QLabel(self.groupBox_2)
self.label_script.setObjectName(u"label_script")
self.gridLayout_4.addWidget(self.label_script, 0, 0, 1, 1)
self.execute_speed = QSpinBox(self.groupBox_2)
self.execute_speed.setObjectName(u"execute_speed")
sizePolicy.setHeightForWidth(self.execute_speed.sizePolicy().hasHeightForWidth())
self.execute_speed.setSizePolicy(sizePolicy)
self.execute_speed.setMinimum(20)
self.execute_speed.setMaximum(500)
self.execute_speed.setValue(100)
self.gridLayout_4.addWidget(self.execute_speed, 3, 1, 1, 1)
self.mouse_move_interval_ms = QSpinBox(self.groupBox_2)
self.mouse_move_interval_ms.setObjectName(u"mouse_move_interval_ms")
sizePolicy.setHeightForWidth(self.mouse_move_interval_ms.sizePolicy().hasHeightForWidth())
self.mouse_move_interval_ms.setSizePolicy(sizePolicy)
self.mouse_move_interval_ms.setMinimum(1)
self.mouse_move_interval_ms.setMaximum(1000)
self.mouse_move_interval_ms.setValue(100)
self.gridLayout_4.addWidget(self.mouse_move_interval_ms, 2, 1, 1, 1)
self.stimes = QSpinBox(self.groupBox_2)
self.stimes.setObjectName(u"stimes")
sizePolicy.setHeightForWidth(self.stimes.sizePolicy().hasHeightForWidth())
self.stimes.setSizePolicy(sizePolicy)
self.stimes.setMaximum(99999)
self.stimes.setValue(1)
self.gridLayout_4.addWidget(self.stimes, 1, 1, 1, 1)
self.gridLayout = QGridLayout()
self.gridLayout.setObjectName(u"gridLayout")
self.gridLayout.setSizeConstraint(QLayout.SetMinimumSize)
self.choice_script = QComboBox(self.groupBox_2)
self.choice_script.setObjectName(u"choice_script")
sizePolicy.setHeightForWidth(self.choice_script.sizePolicy().hasHeightForWidth())
self.choice_script.setSizePolicy(sizePolicy)
self.gridLayout.addWidget(self.choice_script, 0, 0, 1, 1)
self.bt_open_script_files = QPushButton(self.groupBox_2)
self.bt_open_script_files.setObjectName(u"bt_open_script_files")
sizePolicy.setHeightForWidth(self.bt_open_script_files.sizePolicy().hasHeightForWidth())
self.bt_open_script_files.setSizePolicy(sizePolicy)
self.gridLayout.addWidget(self.bt_open_script_files, 0, 1, 1, 1)
self.gridLayout.setColumnStretch(0, 3)
self.gridLayout.setColumnStretch(1, 1)
self.gridLayout_4.addLayout(self.gridLayout, 0, 1, 1, 1)
UIView.setCentralWidget(self.centralwidget)
self.menubar = QMenuBar(UIView)
self.menubar.setObjectName(u"menubar")
self.menubar.setGeometry(QRect(0, 0, 652, 26))
UIView.setMenuBar(self.menubar)
self.statusbar = QStatusBar(UIView)
self.statusbar.setObjectName(u"statusbar")
UIView.setStatusBar(self.statusbar)
self.retranslateUi(UIView)
QMetaObject.connectSlotsByName(UIView)
# setupUi
def retranslateUi(self, UIView):
UIView.setWindowTitle(QCoreApplication.translate("UIView", u"KeymouseGo v5.1", None))
self.groupBox.setTitle(QCoreApplication.translate("UIView", u"Hotkeys", None))
self.label_stop.setText(QCoreApplication.translate("UIView", u"Terminate", None))
self.label_language.setText(QCoreApplication.translate("UIView", u"Language", None))
self.choice_start.setCurrentText("")
self.label_record.setText(QCoreApplication.translate("UIView", u"Record/Pause", None))
self.label_extension.setText(QCoreApplication.translate("UIView", u"Extension", None))
self.label_start_key.setText(QCoreApplication.translate("UIView", u"Launch/Pause", None))
self.btrecord.setText(QCoreApplication.translate("UIView", u"Record", None))
self.btrun.setText(QCoreApplication.translate("UIView", u"Launch", None))
self.btpauserecord.setText(QCoreApplication.translate("UIView", u"Pause Record", None))
self.tnumrd.setText(QCoreApplication.translate("UIView", u"Ready...", None))
self.label_volume.setText(QCoreApplication.translate("UIView", u"Volume", None))
self.groupBox_2.setTitle(QCoreApplication.translate("UIView", u"Config", None))
self.label_execute_interval.setText(QCoreApplication.translate("UIView", u"Mouse precision", None))
self.label_execute_speed.setText(QCoreApplication.translate("UIView", u"Running speed(%)", None))
self.label_run_times.setText(QCoreApplication.translate("UIView", u"Run times", None))
self.label_theme.setText(QCoreApplication.translate("UIView", u"Theme", None))
self.label_script.setText(QCoreApplication.translate("UIView", u"Script", None))
self.bt_open_script_files.setText(QCoreApplication.translate("UIView", u"...", None))
# retranslateUi