-
Notifications
You must be signed in to change notification settings - Fork 2
/
OKPUI.py
655 lines (647 loc) · 45.4 KB
/
OKPUI.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
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
# Form implementation generated from reading ui file 'OKP.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
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(609, 950)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
MainWindow.setSizePolicy(sizePolicy)
MainWindow.setMinimumSize(QtCore.QSize(600, 840))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei UI")
font.setPointSize(12)
MainWindow.setFont(font)
self.centralwidget = QtWidgets.QWidget(parent=MainWindow)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
self.centralwidget.setSizePolicy(sizePolicy)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout_2 = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout_2.setObjectName("gridLayout_2")
self.tab = QtWidgets.QTabWidget(parent=self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tab.sizePolicy().hasHeightForWidth())
self.tab.setSizePolicy(sizePolicy)
self.tab.setMinimumSize(QtCore.QSize(594, 800))
font = QtGui.QFont()
font.setPointSize(12)
font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
self.tab.setFont(font)
self.tab.setStyleSheet("")
self.tab.setObjectName("tab")
self.HomeTab = QtWidgets.QWidget()
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.HomeTab.sizePolicy().hasHeightForWidth())
self.HomeTab.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
self.HomeTab.setFont(font)
self.HomeTab.setObjectName("HomeTab")
self.gridLayout = QtWidgets.QGridLayout(self.HomeTab)
self.gridLayout.setObjectName("gridLayout")
self.buttonDeleteTemplate = QtWidgets.QPushButton(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.buttonDeleteTemplate.sizePolicy().hasHeightForWidth())
self.buttonDeleteTemplate.setSizePolicy(sizePolicy)
self.buttonDeleteTemplate.setAutoFillBackground(False)
self.buttonDeleteTemplate.setStyleSheet("color: rgb(255, 0, 30);\n"
"font: 12pt \"Microsoft YaHei UI\";")
self.buttonDeleteTemplate.setFlat(False)
self.buttonDeleteTemplate.setObjectName("buttonDeleteTemplate")
self.gridLayout.addWidget(self.buttonDeleteTemplate, 1, 8, 1, 1)
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
self.gridLayout.addItem(spacerItem, 5, 4, 1, 1)
self.label_10 = QtWidgets.QLabel(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_10.sizePolicy().hasHeightForWidth())
self.label_10.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(9)
self.label_10.setFont(font)
self.label_10.setStyleSheet("color:rgb(75, 75, 75)\n"
"")
self.label_10.setObjectName("label_10")
self.gridLayout.addWidget(self.label_10, 6, 0, 1, 1)
self.textDescription = QtWidgets.QTextEdit(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textDescription.sizePolicy().hasHeightForWidth())
self.textDescription.setSizePolicy(sizePolicy)
self.textDescription.setObjectName("textDescription")
self.gridLayout.addWidget(self.textDescription, 7, 0, 1, 9)
self.formLayout = QtWidgets.QFormLayout()
self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldGrowthPolicy.ExpandingFieldsGrow)
self.formLayout.setObjectName("formLayout")
self.label_4 = QtWidgets.QLabel(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
self.label_4.setSizePolicy(sizePolicy)
self.label_4.setObjectName("label_4")
self.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_4)
self.textEpPattern = QtWidgets.QLineEdit(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textEpPattern.sizePolicy().hasHeightForWidth())
self.textEpPattern.setSizePolicy(sizePolicy)
self.textEpPattern.setMinimumSize(QtCore.QSize(0, 30))
font = QtGui.QFont()
font.setPointSize(10)
self.textEpPattern.setFont(font)
self.textEpPattern.setObjectName("textEpPattern")
self.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.textEpPattern)
self.label_5 = QtWidgets.QLabel(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth())
self.label_5.setSizePolicy(sizePolicy)
self.label_5.setObjectName("label_5")
self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_5)
self.textTitlePattern = QtWidgets.QLineEdit(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textTitlePattern.sizePolicy().hasHeightForWidth())
self.textTitlePattern.setSizePolicy(sizePolicy)
self.textTitlePattern.setMinimumSize(QtCore.QSize(0, 30))
font = QtGui.QFont()
font.setPointSize(10)
self.textTitlePattern.setFont(font)
self.textTitlePattern.setObjectName("textTitlePattern")
self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.textTitlePattern)
self.Lable = QtWidgets.QLabel(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.Lable.sizePolicy().hasHeightForWidth())
self.Lable.setSizePolicy(sizePolicy)
self.Lable.setObjectName("Lable")
self.formLayout.setWidget(3, QtWidgets.QFormLayout.ItemRole.LabelRole, self.Lable)
self.textTitle = QtWidgets.QLineEdit(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textTitle.sizePolicy().hasHeightForWidth())
self.textTitle.setSizePolicy(sizePolicy)
self.textTitle.setMinimumSize(QtCore.QSize(0, 30))
font = QtGui.QFont()
font.setPointSize(10)
self.textTitle.setFont(font)
self.textTitle.setObjectName("textTitle")
self.formLayout.setWidget(3, QtWidgets.QFormLayout.ItemRole.FieldRole, self.textTitle)
self.label_7 = QtWidgets.QLabel(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_7.sizePolicy().hasHeightForWidth())
self.label_7.setSizePolicy(sizePolicy)
self.label_7.setObjectName("label_7")
self.formLayout.setWidget(4, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_7)
self.textPoster = QtWidgets.QLineEdit(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textPoster.sizePolicy().hasHeightForWidth())
self.textPoster.setSizePolicy(sizePolicy)
self.textPoster.setMinimumSize(QtCore.QSize(0, 30))
font = QtGui.QFont()
font.setPointSize(10)
self.textPoster.setFont(font)
self.textPoster.setObjectName("textPoster")
self.formLayout.setWidget(4, QtWidgets.QFormLayout.ItemRole.FieldRole, self.textPoster)
self.label_8 = QtWidgets.QLabel(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_8.sizePolicy().hasHeightForWidth())
self.label_8.setSizePolicy(sizePolicy)
self.label_8.setObjectName("label_8")
self.formLayout.setWidget(5, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_8)
self.textAbout = QtWidgets.QLineEdit(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textAbout.sizePolicy().hasHeightForWidth())
self.textAbout.setSizePolicy(sizePolicy)
self.textAbout.setMinimumSize(QtCore.QSize(0, 30))
font = QtGui.QFont()
font.setPointSize(10)
self.textAbout.setFont(font)
self.textAbout.setObjectName("textAbout")
self.formLayout.setWidget(5, QtWidgets.QFormLayout.ItemRole.FieldRole, self.textAbout)
self.textTags = QtWidgets.QLineEdit(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textTags.sizePolicy().hasHeightForWidth())
self.textTags.setSizePolicy(sizePolicy)
self.textTags.setMinimumSize(QtCore.QSize(0, 30))
font = QtGui.QFont()
font.setPointSize(10)
self.textTags.setFont(font)
self.textTags.setPlaceholderText("")
self.textTags.setObjectName("textTags")
self.formLayout.setWidget(6, QtWidgets.QFormLayout.ItemRole.FieldRole, self.textTags)
self.label_18 = QtWidgets.QLabel(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_18.sizePolicy().hasHeightForWidth())
self.label_18.setSizePolicy(sizePolicy)
self.label_18.setObjectName("label_18")
self.formLayout.setWidget(6, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_18)
self.gridLayout.addLayout(self.formLayout, 4, 0, 1, 9)
self.formLayout_6 = QtWidgets.QFormLayout()
self.formLayout_6.setObjectName("formLayout_6")
self.label_2 = QtWidgets.QLabel(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
self.label_2.setSizePolicy(sizePolicy)
self.label_2.setObjectName("label_2")
self.formLayout_6.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_2)
self.textTemplateName = QtWidgets.QLineEdit(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textTemplateName.sizePolicy().hasHeightForWidth())
self.textTemplateName.setSizePolicy(sizePolicy)
self.textTemplateName.setObjectName("textTemplateName")
self.formLayout_6.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.textTemplateName)
self.label = QtWidgets.QLabel(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
self.label.setSizePolicy(sizePolicy)
self.label.setObjectName("label")
self.formLayout_6.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label)
self.menuTemplateSelection = QtWidgets.QComboBox(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.menuTemplateSelection.sizePolicy().hasHeightForWidth())
self.menuTemplateSelection.setSizePolicy(sizePolicy)
self.menuTemplateSelection.setObjectName("menuTemplateSelection")
self.menuTemplateSelection.addItem("")
self.menuTemplateSelection.setItemText(0, "")
self.formLayout_6.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.menuTemplateSelection)
self.label_3 = QtWidgets.QLabel(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
self.label_3.setSizePolicy(sizePolicy)
self.label_3.setObjectName("label_3")
self.formLayout_6.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_3)
self.textTorrentPath = QtWidgets.QLineEdit(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textTorrentPath.sizePolicy().hasHeightForWidth())
self.textTorrentPath.setSizePolicy(sizePolicy)
self.textTorrentPath.setMinimumSize(QtCore.QSize(0, 30))
font = QtGui.QFont()
font.setPointSize(10)
self.textTorrentPath.setFont(font)
self.textTorrentPath.setReadOnly(True)
self.textTorrentPath.setObjectName("textTorrentPath")
self.formLayout_6.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.textTorrentPath)
self.gridLayout.addLayout(self.formLayout_6, 0, 0, 4, 8)
self.buttonSaveTemplate = QtWidgets.QPushButton(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.buttonSaveTemplate.sizePolicy().hasHeightForWidth())
self.buttonSaveTemplate.setSizePolicy(sizePolicy)
self.buttonSaveTemplate.setObjectName("buttonSaveTemplate")
self.gridLayout.addWidget(self.buttonSaveTemplate, 2, 8, 1, 1)
self.label_9 = QtWidgets.QLabel(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_9.sizePolicy().hasHeightForWidth())
self.label_9.setSizePolicy(sizePolicy)
self.label_9.setObjectName("label_9")
self.gridLayout.addWidget(self.label_9, 5, 0, 1, 1)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
self.gridLayout.addItem(spacerItem1, 5, 3, 1, 1)
self.label_22 = QtWidgets.QLabel(parent=self.HomeTab)
self.label_22.setTextFormat(QtCore.Qt.TextFormat.RichText)
self.label_22.setObjectName("label_22")
self.gridLayout.addWidget(self.label_22, 5, 5, 1, 1)
self.buttonPreviewMarkdown = QtWidgets.QPushButton(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.buttonPreviewMarkdown.sizePolicy().hasHeightForWidth())
self.buttonPreviewMarkdown.setSizePolicy(sizePolicy)
self.buttonPreviewMarkdown.setObjectName("buttonPreviewMarkdown")
self.gridLayout.addWidget(self.buttonPreviewMarkdown, 5, 6, 1, 3)
self.buttonBrowse = QtWidgets.QPushButton(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.buttonBrowse.sizePolicy().hasHeightForWidth())
self.buttonBrowse.setSizePolicy(sizePolicy)
self.buttonBrowse.setObjectName("buttonBrowse")
self.gridLayout.addWidget(self.buttonBrowse, 0, 8, 1, 1)
self.fileTree = QtWidgets.QTreeWidget(parent=self.HomeTab)
self.fileTree.setMinimumSize(QtCore.QSize(0, 150))
self.fileTree.setObjectName("fileTree")
self.fileTree.header().setSortIndicatorShown(True)
self.gridLayout.addWidget(self.fileTree, 9, 0, 1, 9)
self.buttonOKP = QtWidgets.QPushButton(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.buttonOKP.sizePolicy().hasHeightForWidth())
self.buttonOKP.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(20)
self.buttonOKP.setFont(font)
self.buttonOKP.setObjectName("buttonOKP")
self.gridLayout.addWidget(self.buttonOKP, 10, 0, 1, 9)
self.formLayout_2 = QtWidgets.QFormLayout()
self.formLayout_2.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldGrowthPolicy.ExpandingFieldsGrow)
self.formLayout_2.setObjectName("formLayout_2")
self.label_12 = QtWidgets.QLabel(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_12.sizePolicy().hasHeightForWidth())
self.label_12.setSizePolicy(sizePolicy)
self.label_12.setObjectName("label_12")
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_12)
self.menuSelectCookies = QtWidgets.QComboBox(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.menuSelectCookies.sizePolicy().hasHeightForWidth())
self.menuSelectCookies.setSizePolicy(sizePolicy)
self.menuSelectCookies.setObjectName("menuSelectCookies")
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.menuSelectCookies)
self.checkboxDmhyPublish = QtWidgets.QCheckBox(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.checkboxDmhyPublish.sizePolicy().hasHeightForWidth())
self.checkboxDmhyPublish.setSizePolicy(sizePolicy)
self.checkboxDmhyPublish.setObjectName("checkboxDmhyPublish")
self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.checkboxDmhyPublish)
self.checkboxBangumiPublish = QtWidgets.QCheckBox(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.checkboxBangumiPublish.sizePolicy().hasHeightForWidth())
self.checkboxBangumiPublish.setSizePolicy(sizePolicy)
self.checkboxBangumiPublish.setObjectName("checkboxBangumiPublish")
self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.checkboxBangumiPublish)
self.checkboxNyaaPublish = QtWidgets.QCheckBox(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.checkboxNyaaPublish.sizePolicy().hasHeightForWidth())
self.checkboxNyaaPublish.setSizePolicy(sizePolicy)
self.checkboxNyaaPublish.setObjectName("checkboxNyaaPublish")
self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.checkboxNyaaPublish)
self.checkboxAcgripPublish = QtWidgets.QCheckBox(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.checkboxAcgripPublish.sizePolicy().hasHeightForWidth())
self.checkboxAcgripPublish.setSizePolicy(sizePolicy)
self.checkboxAcgripPublish.setObjectName("checkboxAcgripPublish")
self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.checkboxAcgripPublish)
self.checkboxAcgnxasiaPublish = QtWidgets.QCheckBox(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.checkboxAcgnxasiaPublish.sizePolicy().hasHeightForWidth())
self.checkboxAcgnxasiaPublish.setSizePolicy(sizePolicy)
self.checkboxAcgnxasiaPublish.setObjectName("checkboxAcgnxasiaPublish")
self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.ItemRole.LabelRole, self.checkboxAcgnxasiaPublish)
self.checkboxAcgnxglobalPublish = QtWidgets.QCheckBox(parent=self.HomeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.checkboxAcgnxglobalPublish.sizePolicy().hasHeightForWidth())
self.checkboxAcgnxglobalPublish.setSizePolicy(sizePolicy)
self.checkboxAcgnxglobalPublish.setObjectName("checkboxAcgnxglobalPublish")
self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.ItemRole.FieldRole, self.checkboxAcgnxglobalPublish)
self.gridLayout.addLayout(self.formLayout_2, 8, 0, 1, 9)
self.tab.addTab(self.HomeTab, "")
self.CookiesManagerTab = QtWidgets.QWidget()
self.CookiesManagerTab.setObjectName("CookiesManagerTab")
self.gridLayout_3 = QtWidgets.QGridLayout(self.CookiesManagerTab)
self.gridLayout_3.setObjectName("gridLayout_3")
self.formLayout_3 = QtWidgets.QFormLayout()
self.formLayout_3.setObjectName("formLayout_3")
self.label_16 = QtWidgets.QLabel(parent=self.CookiesManagerTab)
self.label_16.setObjectName("label_16")
self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_16)
self.label_17 = QtWidgets.QLabel(parent=self.CookiesManagerTab)
self.label_17.setObjectName("label_17")
self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.label_17)
self.buttonDmhyLogin = QtWidgets.QPushButton(parent=self.CookiesManagerTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.buttonDmhyLogin.sizePolicy().hasHeightForWidth())
self.buttonDmhyLogin.setSizePolicy(sizePolicy)
self.buttonDmhyLogin.setObjectName("buttonDmhyLogin")
self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.buttonDmhyLogin)
self.textDmhyName = QtWidgets.QLineEdit(parent=self.CookiesManagerTab)
self.textDmhyName.setObjectName("textDmhyName")
self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.textDmhyName)
self.buttonNyaaLogin = QtWidgets.QPushButton(parent=self.CookiesManagerTab)
self.buttonNyaaLogin.setObjectName("buttonNyaaLogin")
self.formLayout_3.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.buttonNyaaLogin)
self.textNyaaName = QtWidgets.QLineEdit(parent=self.CookiesManagerTab)
self.textNyaaName.setReadOnly(False)
self.textNyaaName.setClearButtonEnabled(False)
self.textNyaaName.setObjectName("textNyaaName")
self.formLayout_3.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.textNyaaName)
self.buttonAcgripLogin = QtWidgets.QPushButton(parent=self.CookiesManagerTab)
self.buttonAcgripLogin.setObjectName("buttonAcgripLogin")
self.formLayout_3.setWidget(3, QtWidgets.QFormLayout.ItemRole.LabelRole, self.buttonAcgripLogin)
self.textAcgripName = QtWidgets.QLineEdit(parent=self.CookiesManagerTab)
self.textAcgripName.setObjectName("textAcgripName")
self.formLayout_3.setWidget(3, QtWidgets.QFormLayout.ItemRole.FieldRole, self.textAcgripName)
self.buttonBangumiLogin = QtWidgets.QPushButton(parent=self.CookiesManagerTab)
self.buttonBangumiLogin.setObjectName("buttonBangumiLogin")
self.formLayout_3.setWidget(4, QtWidgets.QFormLayout.ItemRole.LabelRole, self.buttonBangumiLogin)
self.textBangumiName = QtWidgets.QLineEdit(parent=self.CookiesManagerTab)
self.textBangumiName.setObjectName("textBangumiName")
self.formLayout_3.setWidget(4, QtWidgets.QFormLayout.ItemRole.FieldRole, self.textBangumiName)
self.acgnx_asiaLabel = QtWidgets.QLabel(parent=self.CookiesManagerTab)
self.acgnx_asiaLabel.setObjectName("acgnx_asiaLabel")
self.formLayout_3.setWidget(5, QtWidgets.QFormLayout.ItemRole.LabelRole, self.acgnx_asiaLabel)
self.textAcgnxasiaName = QtWidgets.QLineEdit(parent=self.CookiesManagerTab)
self.textAcgnxasiaName.setObjectName("textAcgnxasiaName")
self.formLayout_3.setWidget(5, QtWidgets.QFormLayout.ItemRole.FieldRole, self.textAcgnxasiaName)
self.textAcgnxasiaToken = QtWidgets.QLineEdit(parent=self.CookiesManagerTab)
self.textAcgnxasiaToken.setObjectName("textAcgnxasiaToken")
self.formLayout_3.setWidget(6, QtWidgets.QFormLayout.ItemRole.FieldRole, self.textAcgnxasiaToken)
self.acgnx_globalLabel = QtWidgets.QLabel(parent=self.CookiesManagerTab)
self.acgnx_globalLabel.setObjectName("acgnx_globalLabel")
self.formLayout_3.setWidget(8, QtWidgets.QFormLayout.ItemRole.LabelRole, self.acgnx_globalLabel)
self.textAcgnxglobalName = QtWidgets.QLineEdit(parent=self.CookiesManagerTab)
self.textAcgnxglobalName.setObjectName("textAcgnxglobalName")
self.formLayout_3.setWidget(8, QtWidgets.QFormLayout.ItemRole.FieldRole, self.textAcgnxglobalName)
self.textAcgnxglobalToken = QtWidgets.QLineEdit(parent=self.CookiesManagerTab)
self.textAcgnxglobalToken.setObjectName("textAcgnxglobalToken")
self.formLayout_3.setWidget(9, QtWidgets.QFormLayout.ItemRole.FieldRole, self.textAcgnxglobalToken)
self.label_11 = QtWidgets.QLabel(parent=self.CookiesManagerTab)
self.label_11.setObjectName("label_11")
self.formLayout_3.setWidget(6, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_11)
self.label_19 = QtWidgets.QLabel(parent=self.CookiesManagerTab)
self.label_19.setObjectName("label_19")
self.formLayout_3.setWidget(9, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_19)
self.gridLayout_3.addLayout(self.formLayout_3, 8, 0, 1, 4)
self.textCookies = QtWidgets.QTextEdit(parent=self.CookiesManagerTab)
self.textCookies.viewport().setProperty("cursor", QtGui.QCursor(QtCore.Qt.CursorShape.IBeamCursor))
self.textCookies.setDocumentTitle("")
self.textCookies.setLineWrapMode(QtWidgets.QTextEdit.LineWrapMode.NoWrap)
self.textCookies.setObjectName("textCookies")
self.gridLayout_3.addWidget(self.textCookies, 11, 0, 1, 4)
self.label_14 = QtWidgets.QLabel(parent=self.CookiesManagerTab)
self.label_14.setObjectName("label_14")
self.gridLayout_3.addWidget(self.label_14, 10, 0, 1, 1)
self.label_6 = QtWidgets.QLabel(parent=self.CookiesManagerTab)
self.label_6.setObjectName("label_6")
self.gridLayout_3.addWidget(self.label_6, 10, 1, 1, 3)
self.buttonDeleteProfile = QtWidgets.QPushButton(parent=self.CookiesManagerTab)
self.buttonDeleteProfile.setStyleSheet("color: rgb(255, 0, 30);\n"
"font: 12pt \"Microsoft YaHei UI\";")
self.buttonDeleteProfile.setObjectName("buttonDeleteProfile")
self.gridLayout_3.addWidget(self.buttonDeleteProfile, 0, 3, 1, 1)
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
self.gridLayout_3.addItem(spacerItem2, 9, 1, 1, 1)
self.buttonSaveProfile = QtWidgets.QPushButton(parent=self.CookiesManagerTab)
self.buttonSaveProfile.setObjectName("buttonSaveProfile")
self.gridLayout_3.addWidget(self.buttonSaveProfile, 1, 3, 1, 1)
self.formLayout_7 = QtWidgets.QFormLayout()
self.formLayout_7.setObjectName("formLayout_7")
self.label_13 = QtWidgets.QLabel(parent=self.CookiesManagerTab)
self.label_13.setObjectName("label_13")
self.formLayout_7.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_13)
self.menuProfileSelection = QtWidgets.QComboBox(parent=self.CookiesManagerTab)
self.menuProfileSelection.setObjectName("menuProfileSelection")
self.menuProfileSelection.addItem("")
self.formLayout_7.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.menuProfileSelection)
self.label_15 = QtWidgets.QLabel(parent=self.CookiesManagerTab)
self.label_15.setObjectName("label_15")
self.formLayout_7.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_15)
self.textProfileName = QtWidgets.QLineEdit(parent=self.CookiesManagerTab)
self.textProfileName.setObjectName("textProfileName")
self.formLayout_7.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.textProfileName)
self.gridLayout_3.addLayout(self.formLayout_7, 0, 0, 2, 2)
self.tab.addTab(self.CookiesManagerTab, "")
self.ProxyTab = QtWidgets.QWidget()
self.ProxyTab.setObjectName("ProxyTab")
self.formLayout_4 = QtWidgets.QFormLayout(self.ProxyTab)
self.formLayout_4.setObjectName("formLayout_4")
self.Label = QtWidgets.QLabel(parent=self.ProxyTab)
self.Label.setObjectName("Label")
self.formLayout_4.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.Label)
self.menuProxyType = QtWidgets.QComboBox(parent=self.ProxyTab)
self.menuProxyType.setObjectName("menuProxyType")
self.menuProxyType.addItem("")
self.menuProxyType.addItem("")
self.formLayout_4.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.menuProxyType)
self.hostLabel = QtWidgets.QLabel(parent=self.ProxyTab)
self.hostLabel.setObjectName("hostLabel")
self.formLayout_4.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.hostLabel)
self.textProxyHost = QtWidgets.QLineEdit(parent=self.ProxyTab)
self.textProxyHost.setPlaceholderText("")
self.textProxyHost.setObjectName("textProxyHost")
self.formLayout_4.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.textProxyHost)
self.buttonSaveProxy = QtWidgets.QPushButton(parent=self.ProxyTab)
self.buttonSaveProxy.setObjectName("buttonSaveProxy")
self.formLayout_4.setWidget(3, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.buttonSaveProxy)
self.textAboutProgram = QtWidgets.QLabel(parent=self.ProxyTab)
self.textAboutProgram.setAutoFillBackground(True)
self.textAboutProgram.setTextFormat(QtCore.Qt.TextFormat.RichText)
self.textAboutProgram.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignTop)
self.textAboutProgram.setOpenExternalLinks(True)
self.textAboutProgram.setTextInteractionFlags(QtCore.Qt.TextInteractionFlag.TextBrowserInteraction)
self.textAboutProgram.setObjectName("textAboutProgram")
self.formLayout_4.setWidget(7, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.textAboutProgram)
self.label_20 = QtWidgets.QLabel(parent=self.ProxyTab)
self.label_20.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
self.label_20.setObjectName("label_20")
self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.label_20)
self.label_21 = QtWidgets.QLabel(parent=self.ProxyTab)
self.label_21.setAutoFillBackground(True)
self.label_21.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
self.label_21.setObjectName("label_21")
self.formLayout_4.setWidget(6, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.label_21)
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
self.formLayout_4.setItem(5, QtWidgets.QFormLayout.ItemRole.SpanningRole, spacerItem3)
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
self.formLayout_4.setItem(4, QtWidgets.QFormLayout.ItemRole.SpanningRole, spacerItem4)
self.tab.addTab(self.ProxyTab, "")
self.gridLayout_2.addWidget(self.tab, 0, 0, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
self.tab.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "OKPGUI by AmusementClub"))
self.buttonDeleteTemplate.setText(_translate("MainWindow", "删除模板"))
self.label_10.setText(_translate("MainWindow", "请使用 Markdown 编写"))
self.label_4.setText(_translate("MainWindow", "集数匹配"))
self.textEpPattern.setToolTip(_translate("MainWindow", "<html><head/><body><p>测试</p></body></html>"))
self.textEpPattern.setWhatsThis(_translate("MainWindow", "<html><head/><body><p>测试</p></body></html>"))
self.textEpPattern.setPlaceholderText(_translate("MainWindow", "在文件名集数部分使用 <ep> 替换,分辨率用 <res> 替换"))
self.label_5.setText(_translate("MainWindow", "标题匹配"))
self.Lable.setText(_translate("MainWindow", "标题"))
self.label_7.setText(_translate("MainWindow", "海报链接"))
self.textPoster.setPlaceholderText(_translate("MainWindow", "For dmhy.org"))
self.label_8.setText(_translate("MainWindow", "关于"))
self.textAbout.setPlaceholderText(_translate("MainWindow", "For nyaa.si"))
self.textTags.setToolTip(_translate("MainWindow", "输入标签,以英文逗号分隔,可用标签可参考 “如何使用 tags?”"))
self.label_18.setText(_translate("MainWindow", "Tags"))
self.label_2.setText(_translate("MainWindow", "模板名称"))
self.label.setText(_translate("MainWindow", "选择模板"))
self.menuTemplateSelection.setWhatsThis(_translate("MainWindow", "<html><head/><body><p>第一次使用请选择「新模板」</p></body></html>"))
self.label_3.setText(_translate("MainWindow", "种子文件"))
self.textTorrentPath.setPlaceholderText(_translate("MainWindow", "可直接 .torrent 文件拖放到此处"))
self.buttonSaveTemplate.setText(_translate("MainWindow", "保存模板"))
self.label_9.setText(_translate("MainWindow", "内容"))
self.label_22.setText(_translate("MainWindow", "<html><head/><body><p><a href=\"https://github.com/AmusementClub/OKP/wiki/TagsConvert\"><span style=\" text-decoration: underline; color:#0000ff;\">如何使用 tags?</span></a></p></body></html>"))
self.buttonPreviewMarkdown.setText(_translate("MainWindow", "预览"))
self.buttonBrowse.setText(_translate("MainWindow", "浏览"))
self.fileTree.setSortingEnabled(True)
self.fileTree.headerItem().setText(0, _translate("MainWindow", "Files"))
self.fileTree.headerItem().setText(1, _translate("MainWindow", "Size"))
self.buttonOKP.setText(_translate("MainWindow", "One Key Publish!"))
self.label_12.setText(_translate("MainWindow", "选择身份"))
self.checkboxDmhyPublish.setText(_translate("MainWindow", "dmhy"))
self.checkboxBangumiPublish.setText(_translate("MainWindow", "bangumi"))
self.checkboxNyaaPublish.setText(_translate("MainWindow", "nyaa"))
self.checkboxAcgripPublish.setText(_translate("MainWindow", "acg.rip"))
self.checkboxAcgnxasiaPublish.setText(_translate("MainWindow", "acgnx_asia"))
self.checkboxAcgnxglobalPublish.setText(_translate("MainWindow", "acgnx_global"))
self.tab.setTabText(self.tab.indexOf(self.HomeTab), _translate("MainWindow", "主页"))
self.label_16.setText(_translate("MainWindow", "登录发布网站"))
self.label_17.setText(_translate("MainWindow", "发布组名称"))
self.buttonDmhyLogin.setText(_translate("MainWindow", "dmhy"))
self.buttonNyaaLogin.setText(_translate("MainWindow", "nyaa"))
self.buttonAcgripLogin.setText(_translate("MainWindow", "acg.rip"))
self.buttonBangumiLogin.setText(_translate("MainWindow", "bangumi"))
self.acgnx_asiaLabel.setText(_translate("MainWindow", "acgnx_asia UID"))
self.textAcgnxasiaName.setPlaceholderText(_translate("MainWindow", "填写 acgnx UID"))
self.textAcgnxasiaToken.setPlaceholderText(_translate("MainWindow", "填写 acgnx asia API Token"))
self.acgnx_globalLabel.setText(_translate("MainWindow", "acgnx_global UID"))
self.textAcgnxglobalName.setPlaceholderText(_translate("MainWindow", "填写 acgnx UID"))
self.textAcgnxglobalToken.setPlaceholderText(_translate("MainWindow", "填写 acgnx global API Token"))
self.label_11.setText(_translate("MainWindow", "Token"))
self.label_19.setText(_translate("MainWindow", "Token"))
self.label_14.setText(_translate("MainWindow", "Cookies 文件:"))
self.label_6.setText(_translate("MainWindow", "本页中的内容需要保存身份后才会生效。"))
self.buttonDeleteProfile.setText(_translate("MainWindow", "删除身份"))
self.buttonSaveProfile.setText(_translate("MainWindow", "保存身份"))
self.label_13.setText(_translate("MainWindow", "选择身份"))
self.menuProfileSelection.setWhatsThis(_translate("MainWindow", "<html><head/><body><p>第一次使用请选择「新模板」</p></body></html>"))
self.menuProfileSelection.setItemText(0, _translate("MainWindow", "新身份"))
self.label_15.setText(_translate("MainWindow", "身份名称"))
self.tab.setTabText(self.tab.indexOf(self.CookiesManagerTab), _translate("MainWindow", "身份管理器"))
self.Label.setText(_translate("MainWindow", "代理类型"))
self.menuProxyType.setItemText(0, _translate("MainWindow", "不使用代理"))
self.menuProxyType.setItemText(1, _translate("MainWindow", "HTTP"))
self.hostLabel.setText(_translate("MainWindow", "Host"))
self.textProxyHost.setText(_translate("MainWindow", "http://127.0.0.1:7890"))
self.buttonSaveProxy.setText(_translate("MainWindow", "应用"))
self.textAboutProgram.setText(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Microsoft YaHei UI\'; font-size:12pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">此软件为 <a href=\"https://github.com/AmusementClub/OKP\"><span style=\" text-decoration: underline; color:#0000ff;\">OKP</span></a> 的 GUI,由<a href=\"https://github.com/AmusementClub\"><span style=\" text-decoration: underline; color:#0000ff;\">娱乐部</span></a>制作,用于快速在多个 BT 资源站发布种子。</p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">使用方法参见 GitHub 上的 <a href=\"https://github.com/AmusementClub/OKPGUI\"><span style=\" text-decoration: underline; color:#0000ff;\">README</span></a>。</p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Version: 0.0.1 Alpha 内部测试版。</p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">作者:<a href=\"https://github.com/tastysugar\"><span style=\" text-decoration: underline; color:#0000ff;\">tastySugar</span></a></p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>"))
self.label_20.setText(_translate("MainWindow", "代理设置"))
self.label_21.setText(_translate("MainWindow", "关于"))
self.tab.setTabText(self.tab.indexOf(self.ProxyTab), _translate("MainWindow", "杂项"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec())