-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathauto_ui_ui.py
161 lines (154 loc) · 7.51 KB
/
auto_ui_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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'd:\Files\PythonFiles\WC\WindowsCleaner\resource\ui\auto_ui.ui'
#
# Created by: PyQt5 UI code generator 5.15.11
#
# 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_AutoClean(object):
def setupUi(self, AutoClean):
AutoClean.setObjectName("AutoClean")
AutoClean.resize(335, 514)
font = QtGui.QFont()
font.setPointSize(20)
AutoClean.setFont(font)
self.gridLayout_4 = QtWidgets.QGridLayout(AutoClean)
self.gridLayout_4.setObjectName("gridLayout_4")
self.label_11 = QtWidgets.QLabel(AutoClean)
self.label_11.setMinimumSize(QtCore.QSize(0, 31))
self.label_11.setText("")
self.label_11.setObjectName("label_11")
self.gridLayout_4.addWidget(self.label_11, 0, 0, 1, 1)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.label = LargeTitleLabel(AutoClean)
font = QtGui.QFont()
font.setFamily("Microsoft YaHei UI")
font.setPointSize(20)
font.setBold(False)
font.setWeight(50)
self.label.setFont(font)
self.label.setObjectName("label")
self.horizontalLayout.addWidget(self.label)
spacerItem = QtWidgets.QSpacerItem(105, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.gridLayout_4.addLayout(self.horizontalLayout, 1, 0, 1, 1)
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.pushButton = SwitchButton(AutoClean)
self.pushButton.setMinimumSize(QtCore.QSize(0, 35))
font = QtGui.QFont()
font.setPointSize(16)
self.pushButton.setFont(font)
self.pushButton.setText("")
self.pushButton.setObjectName("pushButton")
self.horizontalLayout_3.addWidget(self.pushButton)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_3.addItem(spacerItem1)
self.gridLayout_4.addLayout(self.horizontalLayout_3, 2, 0, 1, 1)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.comboBox = ComboBox(AutoClean)
font = QtGui.QFont()
font.setFamily("Microsoft YaHei UI")
font.setPointSize(16)
self.comboBox.setFont(font)
self.comboBox.setObjectName("comboBox")
self.comboBox.addItem("")
self.comboBox.addItem("")
self.horizontalLayout_2.addWidget(self.comboBox)
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem2)
self.gridLayout_4.addLayout(self.horizontalLayout_2, 3, 0, 1, 1)
self.widget = QtWidgets.QWidget(AutoClean)
self.widget.setObjectName("widget")
self.gridLayout = QtWidgets.QGridLayout(self.widget)
self.gridLayout.setObjectName("gridLayout")
self.label_2 = CaptionLabel(self.widget)
font = QtGui.QFont()
font.setFamily("Microsoft YaHei UI")
font.setPointSize(13)
self.label_2.setFont(font)
self.label_2.setObjectName("label_2")
self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
self.spinBox = CompactSpinBox(self.widget)
font = QtGui.QFont()
font.setFamily("Microsoft YaHei UI")
font.setPointSize(13)
self.spinBox.setFont(font)
self.spinBox.setMinimum(1)
self.spinBox.setMaximum(180)
self.spinBox.setObjectName("spinBox")
self.gridLayout.addWidget(self.spinBox, 0, 1, 1, 1)
self.label_4 = CaptionLabel(self.widget)
font = QtGui.QFont()
font.setFamily("Microsoft YaHei UI")
font.setPointSize(13)
self.label_4.setFont(font)
self.label_4.setObjectName("label_4")
self.gridLayout.addWidget(self.label_4, 0, 2, 1, 1)
self.gridLayout_4.addWidget(self.widget, 4, 0, 1, 1)
self.widget_3 = QtWidgets.QWidget(AutoClean)
self.widget_3.setObjectName("widget_3")
self.gridLayout_2 = QtWidgets.QGridLayout(self.widget_3)
self.gridLayout_2.setObjectName("gridLayout_2")
self.label_5 = CaptionLabel(self.widget_3)
font = QtGui.QFont()
font.setFamily("Microsoft YaHei UI")
font.setPointSize(13)
self.label_5.setFont(font)
self.label_5.setObjectName("label_5")
self.gridLayout_2.addWidget(self.label_5, 0, 0, 1, 1)
self.spinBox_2 = CompactSpinBox(self.widget_3)
font = QtGui.QFont()
font.setFamily("Microsoft YaHei UI")
font.setPointSize(13)
self.spinBox_2.setFont(font)
self.spinBox_2.setMinimum(1)
self.spinBox_2.setMaximum(8192)
self.spinBox_2.setObjectName("spinBox_2")
self.gridLayout_2.addWidget(self.spinBox_2, 0, 1, 1, 1)
self.label_6 = CaptionLabel(self.widget_3)
font = QtGui.QFont()
font.setFamily("Microsoft YaHei UI")
font.setPointSize(13)
self.label_6.setFont(font)
self.label_6.setObjectName("label_6")
self.gridLayout_2.addWidget(self.label_6, 0, 2, 1, 1)
self.gridLayout_4.addWidget(self.widget_3, 5, 0, 1, 2)
self.widget_2 = QtWidgets.QWidget(AutoClean)
self.widget_2.setObjectName("widget_2")
self.gridLayout_3 = QtWidgets.QGridLayout(self.widget_2)
self.gridLayout_3.setObjectName("gridLayout_3")
self.textEdit = PlainTextEdit(self.widget_2)
font = QtGui.QFont()
font.setFamily("Microsoft YaHei UI")
font.setPointSize(13)
self.textEdit.setFont(font)
self.textEdit.setObjectName("textEdit")
self.gridLayout_3.addWidget(self.textEdit, 2, 0, 1, 1)
self.label_3 = CaptionLabel(self.widget_2)
font = QtGui.QFont()
font.setFamily("Microsoft YaHei UI")
font.setPointSize(13)
self.label_3.setFont(font)
self.label_3.setObjectName("label_3")
self.gridLayout_3.addWidget(self.label_3, 1, 0, 1, 1)
self.gridLayout_4.addWidget(self.widget_2, 6, 0, 1, 2)
spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.gridLayout_4.addItem(spacerItem3, 7, 1, 1, 1)
self.retranslateUi(AutoClean)
QtCore.QMetaObject.connectSlotsByName(AutoClean)
def retranslateUi(self, AutoClean):
_translate = QtCore.QCoreApplication.translate
AutoClean.setWindowTitle(_translate("AutoClean", "Form"))
self.label.setText(_translate("AutoClean", "自动清理"))
self.comboBox.setItemText(0, _translate("AutoClean", "定期清理"))
self.comboBox.setItemText(1, _translate("AutoClean", "C盘空间不足时清理"))
self.label_2.setText(_translate("AutoClean", "每隔"))
self.label_4.setText(_translate("AutoClean", "天及以上清理一次"))
self.label_5.setText(_translate("AutoClean", "C盘剩余空间不足"))
self.label_6.setText(_translate("AutoClean", "GB时清理"))
self.label_3.setText(_translate("AutoClean", "自定义清理列表(深度清理同步)"))
from qfluentwidgets import CaptionLabel, ComboBox, CompactSpinBox, LargeTitleLabel, PlainTextEdit, SwitchButton