This repository has been archived by the owner on Oct 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
frontend.py
376 lines (367 loc) · 20.2 KB
/
frontend.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
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'dialog.ui'
#
# Created by: PyQt5 UI code generator 5.15.7
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_PredatorNonSense(object):
def setupUi(self, PredatorNonSense):
PredatorNonSense.setObjectName("PredatorNonSense")
PredatorNonSense.resize(640, 480)
self.tabWidget = QtWidgets.QTabWidget(PredatorNonSense)
self.tabWidget.setGeometry(QtCore.QRect(0, 0, 641, 481))
self.tabWidget.setAccessibleName("")
self.tabWidget.setObjectName("tabWidget")
self.tab = QtWidgets.QWidget()
self.tab.setObjectName("tab")
self.checkBox = QtWidgets.QCheckBox(self.tab)
self.checkBox.setGeometry(QtCore.QRect(30, 20, 261, 61))
font = QtGui.QFont()
font.setPointSize(30)
self.checkBox.setFont(font)
self.checkBox.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.checkBox.setObjectName("checkBox")
self.groupBox = QtWidgets.QGroupBox(self.tab)
self.groupBox.setGeometry(QtCore.QRect(20, 190, 271, 221))
self.groupBox.setObjectName("groupBox")
self.layoutWidget = QtWidgets.QWidget(self.groupBox)
self.layoutWidget.setGeometry(QtCore.QRect(30, 40, 109, 151))
self.layoutWidget.setObjectName("layoutWidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.layoutWidget)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setObjectName("verticalLayout")
self.radioButton = QtWidgets.QRadioButton(self.layoutWidget)
self.radioButton.setChecked(True)
self.radioButton.setObjectName("radioButton")
self.verticalLayout.addWidget(self.radioButton)
self.radioButton_2 = QtWidgets.QRadioButton(self.layoutWidget)
self.radioButton_2.setObjectName("radioButton_2")
self.verticalLayout.addWidget(self.radioButton_2)
self.radioButton_3 = QtWidgets.QRadioButton(self.layoutWidget)
self.radioButton_3.setObjectName("radioButton_3")
self.verticalLayout.addWidget(self.radioButton_3)
self.verticalSlider = QtWidgets.QSlider(self.groupBox)
self.verticalSlider.setEnabled(False)
self.verticalSlider.setGeometry(QtCore.QRect(210, 30, 20, 160))
self.verticalSlider.setCursor(QtGui.QCursor(QtCore.Qt.CrossCursor))
self.verticalSlider.setMaximum(10)
self.verticalSlider.setProperty("value", 3)
self.verticalSlider.setOrientation(QtCore.Qt.Vertical)
self.verticalSlider.setObjectName("verticalSlider")
self.groupBox_2 = QtWidgets.QGroupBox(self.tab)
self.groupBox_2.setGeometry(QtCore.QRect(340, 190, 271, 221))
self.groupBox_2.setObjectName("groupBox_2")
self.layoutWidget1 = QtWidgets.QWidget(self.groupBox_2)
self.layoutWidget1.setGeometry(QtCore.QRect(50, 40, 117, 151))
self.layoutWidget1.setObjectName("layoutWidget1")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.layoutWidget1)
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.radioButton_4 = QtWidgets.QRadioButton(self.layoutWidget1)
self.radioButton_4.setChecked(True)
self.radioButton_4.setObjectName("radioButton_4")
self.verticalLayout_2.addWidget(self.radioButton_4)
self.radioButton_6 = QtWidgets.QRadioButton(self.layoutWidget1)
self.radioButton_6.setObjectName("radioButton_6")
self.verticalLayout_2.addWidget(self.radioButton_6)
self.radioButton_5 = QtWidgets.QRadioButton(self.layoutWidget1)
self.radioButton_5.setObjectName("radioButton_5")
self.verticalLayout_2.addWidget(self.radioButton_5)
self.verticalSlider_2 = QtWidgets.QSlider(self.groupBox_2)
self.verticalSlider_2.setEnabled(False)
self.verticalSlider_2.setGeometry(QtCore.QRect(210, 30, 20, 160))
self.verticalSlider_2.setCursor(QtGui.QCursor(QtCore.Qt.CrossCursor))
self.verticalSlider_2.setMaximum(10)
self.verticalSlider_2.setSliderPosition(3)
self.verticalSlider_2.setOrientation(QtCore.Qt.Vertical)
self.verticalSlider_2.setObjectName("verticalSlider_2")
self.groupBox_3 = QtWidgets.QGroupBox(self.tab)
self.groupBox_3.setGeometry(QtCore.QRect(20, 90, 591, 80))
self.groupBox_3.setObjectName("groupBox_3")
self.layoutWidget2 = QtWidgets.QWidget(self.groupBox_3)
self.layoutWidget2.setGeometry(QtCore.QRect(30, 30, 511, 36))
self.layoutWidget2.setObjectName("layoutWidget2")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.layoutWidget2)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.radioButton_7 = QtWidgets.QRadioButton(self.layoutWidget2)
font = QtGui.QFont()
font.setPointSize(15)
self.radioButton_7.setFont(font)
self.radioButton_7.setCursor(QtGui.QCursor(QtCore.Qt.UpArrowCursor))
self.radioButton_7.setChecked(True)
self.radioButton_7.setObjectName("radioButton_7")
self.horizontalLayout.addWidget(self.radioButton_7)
self.radioButton_9 = QtWidgets.QRadioButton(self.layoutWidget2)
font = QtGui.QFont()
font.setPointSize(15)
self.radioButton_9.setFont(font)
self.radioButton_9.setCursor(QtGui.QCursor(QtCore.Qt.UpArrowCursor))
self.radioButton_9.setLayoutDirection(QtCore.Qt.RightToLeft)
self.radioButton_9.setObjectName("radioButton_9")
self.horizontalLayout.addWidget(self.radioButton_9)
self.label = QtWidgets.QLabel(self.tab)
self.label.setGeometry(QtCore.QRect(120, 420, 63, 20))
self.label.setObjectName("label")
self.label_2 = QtWidgets.QLabel(self.tab)
self.label_2.setGeometry(QtCore.QRect(450, 420, 63, 20))
self.label_2.setObjectName("label_2")
self.pushButton = QtWidgets.QPushButton(self.tab)
self.pushButton.setGeometry(QtCore.QRect(443, 25, 121, 41))
font = QtGui.QFont()
font.setPointSize(16)
font.setBold(False)
self.pushButton.setFont(font)
self.pushButton.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.pushButton.setObjectName("pushButton")
self.tabWidget.addTab(self.tab, "")
self.tab_2 = QtWidgets.QWidget()
self.tab_2.setObjectName("tab_2")
self.radioButton_8 = QtWidgets.QRadioButton(self.tab_2)
self.radioButton_8.setGeometry(QtCore.QRect(10, 20, 111, 24))
self.radioButton_8.setObjectName("radioButton_8")
self.radioButton_10 = QtWidgets.QRadioButton(self.tab_2)
self.radioButton_10.setGeometry(QtCore.QRect(10, 90, 111, 24))
self.radioButton_10.setObjectName("radioButton_10")
self.radioButton_11 = QtWidgets.QRadioButton(self.tab_2)
self.radioButton_11.setGeometry(QtCore.QRect(10, 170, 111, 24))
self.radioButton_11.setObjectName("radioButton_11")
self.radioButton_12 = QtWidgets.QRadioButton(self.tab_2)
self.radioButton_12.setGeometry(QtCore.QRect(10, 250, 111, 24))
self.radioButton_12.setObjectName("radioButton_12")
self.radioButton_13 = QtWidgets.QRadioButton(self.tab_2)
self.radioButton_13.setGeometry(QtCore.QRect(10, 330, 111, 24))
self.radioButton_13.setObjectName("radioButton_13")
self.verticalSlider_3 = QtWidgets.QSlider(self.tab_2)
self.verticalSlider_3.setGeometry(QtCore.QRect(589, 30, 21, 361))
self.verticalSlider_3.setMinimum(1)
self.verticalSlider_3.setMaximum(9)
self.verticalSlider_3.setOrientation(QtCore.Qt.Vertical)
self.verticalSlider_3.setObjectName("verticalSlider_3")
self.label_3 = QtWidgets.QLabel(self.tab_2)
self.label_3.setGeometry(QtCore.QRect(580, 400, 63, 20))
self.label_3.setObjectName("label_3")
self.verticalSlider_4 = QtWidgets.QSlider(self.tab_2)
self.verticalSlider_4.setGeometry(QtCore.QRect(530, 230, 20, 160))
self.verticalSlider_4.setMaximum(4)
self.verticalSlider_4.setOrientation(QtCore.Qt.Vertical)
self.verticalSlider_4.setObjectName("verticalSlider_4")
self.label_4 = QtWidgets.QLabel(self.tab_2)
self.label_4.setGeometry(QtCore.QRect(500, 400, 71, 20))
self.label_4.setObjectName("label_4")
self.pushButton_2 = QtWidgets.QPushButton(self.tab_2)
self.pushButton_2.setGeometry(QtCore.QRect(340, 20, 94, 36))
self.pushButton_2.setObjectName("pushButton_2")
self.pushButton_3 = QtWidgets.QPushButton(self.tab_2)
self.pushButton_3.setGeometry(QtCore.QRect(460, 20, 94, 36))
self.pushButton_3.setObjectName("pushButton_3")
self.pushButton_4 = QtWidgets.QPushButton(self.tab_2)
self.pushButton_4.setGeometry(QtCore.QRect(350, 200, 94, 36))
self.pushButton_4.setObjectName("pushButton_4")
self.label_5 = QtWidgets.QLabel(self.tab_2)
self.label_5.setGeometry(QtCore.QRect(180, 120, 63, 20))
self.label_5.setObjectName("label_5")
self.label_6 = QtWidgets.QLabel(self.tab_2)
self.label_6.setGeometry(QtCore.QRect(270, 120, 63, 20))
self.label_6.setObjectName("label_6")
self.label_7 = QtWidgets.QLabel(self.tab_2)
self.label_7.setGeometry(QtCore.QRect(360, 120, 63, 20))
self.label_7.setObjectName("label_7")
self.pushButton_5 = QtWidgets.QPushButton(self.tab_2)
self.pushButton_5.setGeometry(QtCore.QRect(110, 250, 94, 101))
self.pushButton_5.setObjectName("pushButton_5")
self.pushButton_6 = QtWidgets.QPushButton(self.tab_2)
self.pushButton_6.setGeometry(QtCore.QRect(200, 250, 94, 101))
self.pushButton_6.setObjectName("pushButton_6")
self.pushButton_7 = QtWidgets.QPushButton(self.tab_2)
self.pushButton_7.setGeometry(QtCore.QRect(290, 250, 94, 101))
self.pushButton_7.setObjectName("pushButton_7")
self.pushButton_8 = QtWidgets.QPushButton(self.tab_2)
self.pushButton_8.setGeometry(QtCore.QRect(380, 250, 94, 101))
self.pushButton_8.setObjectName("pushButton_8")
self.layoutWidget3 = QtWidgets.QWidget(self.tab_2)
self.layoutWidget3.setGeometry(QtCore.QRect(180, 150, 261, 36))
self.layoutWidget3.setObjectName("layoutWidget3")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.layoutWidget3)
self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.spinBox = QtWidgets.QSpinBox(self.layoutWidget3)
self.spinBox.setMaximum(255)
self.spinBox.setObjectName("spinBox")
self.horizontalLayout_3.addWidget(self.spinBox)
self.spinBox_2 = QtWidgets.QSpinBox(self.layoutWidget3)
self.spinBox_2.setMaximum(255)
self.spinBox_2.setObjectName("spinBox_2")
self.horizontalLayout_3.addWidget(self.spinBox_2)
self.spinBox_3 = QtWidgets.QSpinBox(self.layoutWidget3)
self.spinBox_3.setMaximum(255)
self.spinBox_3.setObjectName("spinBox_3")
self.horizontalLayout_3.addWidget(self.spinBox_3)
self.checkBox_2 = QtWidgets.QCheckBox(self.tab_2)
self.checkBox_2.setGeometry(QtCore.QRect(10, 370, 241, 51))
self.checkBox_2.setObjectName("checkBox_2")
self.tabWidget.addTab(self.tab_2, "")
self.tab_3 = QtWidgets.QWidget()
self.tab_3.setObjectName("tab_3")
self.groupBox_4 = QtWidgets.QGroupBox(self.tab_3)
self.groupBox_4.setGeometry(QtCore.QRect(50, 50, 551, 341))
self.groupBox_4.setObjectName("groupBox_4")
self.verticalLayoutWidget = QtWidgets.QWidget(self.groupBox_4)
self.verticalLayoutWidget.setGeometry(QtCore.QRect(30, -10, 531, 371))
self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(
self.verticalLayoutWidget)
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.radioButton_14 = QtWidgets.QRadioButton(self.verticalLayoutWidget)
font = QtGui.QFont()
font.setPointSize(24)
self.radioButton_14.setFont(font)
self.radioButton_14.setChecked(True)
self.radioButton_14.setObjectName("radioButton_14")
self.verticalLayout_3.addWidget(self.radioButton_14)
self.radioButton_15 = QtWidgets.QRadioButton(self.verticalLayoutWidget)
font = QtGui.QFont()
font.setPointSize(24)
self.radioButton_15.setFont(font)
self.radioButton_15.setObjectName("radioButton_15")
self.verticalLayout_3.addWidget(self.radioButton_15)
self.radioButton_16 = QtWidgets.QRadioButton(self.verticalLayoutWidget)
font = QtGui.QFont()
font.setPointSize(24)
self.radioButton_16.setFont(font)
self.radioButton_16.setObjectName("radioButton_16")
self.verticalLayout_3.addWidget(self.radioButton_16)
self.tabWidget.addTab(self.tab_3, "")
self.tab_4 = QtWidgets.QWidget()
self.tab_4.setObjectName("tab_4")
self.groupBox_5 = QtWidgets.QGroupBox(self.tab_4)
self.groupBox_5.setGeometry(QtCore.QRect(30, 20, 571, 81))
self.groupBox_5.setObjectName("groupBox_5")
self.radioButton_17 = QtWidgets.QRadioButton(self.groupBox_5)
self.radioButton_17.setGeometry(QtCore.QRect(40, 40, 121, 23))
self.radioButton_17.setObjectName("radioButton_17")
self.radioButton_18 = QtWidgets.QRadioButton(self.groupBox_5)
self.radioButton_18.setGeometry(QtCore.QRect(360, 40, 121, 23))
self.radioButton_18.setObjectName("radioButton_18")
self.tabWidget.addTab(self.tab_4, "")
self.retranslateUi(PredatorNonSense)
self.tabWidget.setCurrentIndex(0)
self.radioButton_8.clicked['bool'].connect(
self.pushButton_2.setDisabled)
self.radioButton_11.clicked['bool'].connect(
self.pushButton_3.setDisabled)
self.radioButton_11.clicked['bool'].connect(
self.pushButton_2.setDisabled)
self.radioButton_7.clicked['bool'].connect(self.radioButton.setChecked)
self.radioButton_13.clicked['bool'].connect(
self.pushButton_2.setEnabled)
self.verticalSlider_2.valueChanged['int'].connect(self.label_2.setNum)
self.radioButton_12.clicked['bool'].connect(
self.pushButton_3.setEnabled)
self.verticalSlider.valueChanged['int'].connect(self.label.setNum)
self.radioButton_9.clicked['bool'].connect(
self.radioButton_3.setChecked)
self.radioButton_2.toggled['bool'].connect(
self.verticalSlider.setEnabled)
self.radioButton_12.clicked['bool'].connect(
self.verticalSlider_3.setEnabled)
self.radioButton_10.clicked['bool'].connect(
self.pushButton_2.setDisabled)
self.radioButton_10.clicked['bool'].connect(
self.pushButton_3.setDisabled)
self.radioButton_8.clicked['bool'].connect(
self.verticalSlider_3.setDisabled)
self.radioButton_13.clicked['bool'].connect(
self.verticalSlider_3.setEnabled)
self.radioButton_6.toggled['bool'].connect(
self.verticalSlider_2.setEnabled)
self.radioButton_10.clicked['bool'].connect(
self.verticalSlider_3.setEnabled)
self.radioButton_11.clicked['bool'].connect(
self.verticalSlider_3.setEnabled)
self.radioButton_8.clicked['bool'].connect(
self.pushButton_3.setDisabled)
self.radioButton_13.clicked['bool'].connect(
self.pushButton_3.setEnabled)
self.radioButton_7.clicked['bool'].connect(
self.radioButton_4.setChecked)
self.radioButton_9.clicked['bool'].connect(
self.radioButton_5.setChecked)
self.radioButton_12.clicked['bool'].connect(
self.pushButton_2.setEnabled)
QtCore.QMetaObject.connectSlotsByName(PredatorNonSense)
def retranslateUi(self, PredatorNonSense):
_translate = QtCore.QCoreApplication.translate
PredatorNonSense.setWindowTitle(_translate(
"PredatorNonSense", "Predator NonSense"))
self.checkBox.setToolTip(_translate(
"PredatorNonSense", "Only Works When In Auto Mode"))
self.checkBox.setText(_translate("PredatorNonSense", "CoolBoost™"))
self.groupBox.setTitle(_translate("PredatorNonSense", "CPU Fan"))
self.radioButton.setText(_translate("PredatorNonSense", "Auto"))
self.radioButton_2.setText(_translate("PredatorNonSense", "Manual"))
self.radioButton_3.setText(_translate(
"PredatorNonSense", "REEEEEEEEE"))
self.groupBox_2.setTitle(_translate("PredatorNonSense", "GPU Fan"))
self.radioButton_4.setText(_translate("PredatorNonSense", "Auto"))
self.radioButton_6.setText(_translate("PredatorNonSense", "Manual"))
self.radioButton_5.setText(_translate(
"PredatorNonSense", "REEEEEEEEEE"))
self.groupBox_3.setTitle(_translate("PredatorNonSense", "Global"))
self.radioButton_7.setText(_translate("PredatorNonSense", "Auto"))
self.radioButton_9.setText(_translate("PredatorNonSense", "Turbo"))
self.label.setText(_translate("PredatorNonSense", "CPU"))
self.label_2.setText(_translate("PredatorNonSense", "GPU"))
self.pushButton.setText(_translate("PredatorNonSense", "Exit"))
self.tabWidget.setTabText(self.tabWidget.indexOf(
self.tab), _translate("PredatorNonSense", "Fan Control"))
self.radioButton_8.setText(_translate("PredatorNonSense", "Static"))
self.radioButton_10.setText(
_translate("PredatorNonSense", "Breathing"))
self.radioButton_11.setText(_translate("PredatorNonSense", "Neon"))
self.radioButton_12.setText(_translate("PredatorNonSense", "Wave"))
self.radioButton_13.setText(_translate("PredatorNonSense", "Shifting"))
self.label_3.setText(_translate("PredatorNonSense", "Speed"))
self.label_4.setText(_translate("PredatorNonSense", "Brightness"))
self.pushButton_2.setText(_translate("PredatorNonSense", "<"))
self.pushButton_3.setText(_translate("PredatorNonSense", ">"))
self.pushButton_4.setText(_translate("PredatorNonSense", "Set"))
self.label_5.setText(_translate("PredatorNonSense", "R"))
self.label_6.setText(_translate("PredatorNonSense", "G"))
self.label_7.setText(_translate("PredatorNonSense", "B"))
self.pushButton_5.setText(_translate("PredatorNonSense", "L1"))
self.pushButton_6.setText(_translate("PredatorNonSense", "L2"))
self.pushButton_7.setText(_translate("PredatorNonSense", "R2"))
self.pushButton_8.setText(_translate("PredatorNonSense", "R1"))
self.checkBox_2.setText(_translate(
"PredatorNonSense", "30 Seconds Backlight Auto OFF"))
self.tabWidget.setTabText(self.tabWidget.indexOf(
self.tab_2), _translate("PredatorNonSense", "Keyboard RGB"))
self.groupBox_4.setTitle(_translate(
"PredatorNonSense", "Overclock Level"))
self.radioButton_14.setText(
_translate("PredatorNonSense", " Normal"))
self.radioButton_15.setText(_translate("PredatorNonSense", " High"))
self.radioButton_16.setText(
_translate("PredatorNonSense", " Boost"))
self.tabWidget.setTabText(self.tabWidget.indexOf(
self.tab_3), _translate("PredatorNonSense", "GPU Overclock"))
self.groupBox_5.setTitle(_translate(
"PredatorNonSense", "Battery Charge Limiter"))
self.radioButton_17.setText(_translate(
"PredatorNonSense", "No Charge Limit"))
self.radioButton_18.setText(_translate(
"PredatorNonSense", "Limit to 80%"))
self.tabWidget.setTabText(self.tabWidget.indexOf(
self.tab_4), _translate("PredatorNonSense", "System Settings"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
PredatorNonSense = QtWidgets.QDialog()
ui = Ui_PredatorNonSense()
ui.setupUi(PredatorNonSense)
PredatorNonSense.show()
sys.exit(app.exec_())