Skip to content

Commit 0140253

Browse files
committed
first release
1 parent c857aa1 commit 0140253

File tree

9 files changed

+421
-79
lines changed

9 files changed

+421
-79
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
__pycache__/
2+
dist/
3+
build/

autodelete.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ def __init__(self, parent=None):
1313
app = QApplication(sys.argv)
1414
myWin = MyWindow()
1515
myWin.show()
16-
sys.exit(app.exec())
16+
sys.exit(app.exec_())

autodelete.spec

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# -*- mode: python ; coding: utf-8 -*-
2+
3+
block_cipher = None
4+
5+
6+
a = Analysis(['autodelete.py'],
7+
pathex=['C:\\Project\\AutoDeleteFileOnPCWechat'],
8+
binaries=[],
9+
datas=[],
10+
hiddenimports=[],
11+
hookspath=[],
12+
runtime_hooks=[],
13+
excludes=[],
14+
win_no_prefer_redirects=False,
15+
win_private_assemblies=False,
16+
cipher=block_cipher,
17+
noarchive=False)
18+
pyz = PYZ(a.pure, a.zipped_data,
19+
cipher=block_cipher)
20+
exe = EXE(pyz,
21+
a.scripts,
22+
a.binaries,
23+
a.zipfiles,
24+
a.datas,
25+
[],
26+
name='autodelete',
27+
debug=False,
28+
bootloader_ignore_signals=False,
29+
strip=False,
30+
upx=True,
31+
upx_exclude=[],
32+
runtime_tmpdir=None,
33+
console=False , icon='icon.ico')

autodelete.ui

Lines changed: 89 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,35 @@
66
<rect>
77
<x>0</x>
88
<y>0</y>
9-
<width>427</width>
10-
<height>175</height>
9+
<width>450</width>
10+
<height>232</height>
1111
</rect>
1212
</property>
1313
<property name="windowTitle">
1414
<string>MainWindow</string>
1515
</property>
1616
<widget class="QWidget" name="centralwidget">
1717
<layout class="QGridLayout" name="gridLayout">
18-
<item row="6" column="1" colspan="2">
19-
<widget class="QCheckBox" name="checkBox_4">
18+
<item row="3" column="0">
19+
<widget class="QLabel" name="label_4">
2020
<property name="font">
2121
<font>
22+
<family>宋体</family>
2223
<pointsize>11</pointsize>
2324
<weight>75</weight>
2425
<bold>true</bold>
2526
</font>
2627
</property>
2728
<property name="text">
28-
<string>视频(视频文件和视频的封面图)</string>
29+
<string>想要删除的文件类型:</string>
2930
</property>
30-
<property name="checked">
31-
<bool>true</bool>
31+
<property name="textFormat">
32+
<enum>Qt::AutoText</enum>
3233
</property>
3334
</widget>
3435
</item>
35-
<item row="0" column="0">
36-
<widget class="QLabel" name="label">
36+
<item row="2" column="0">
37+
<widget class="QLabel" name="label_2">
3738
<property name="font">
3839
<font>
3940
<family>宋体</family>
@@ -43,22 +44,54 @@
4344
</font>
4445
</property>
4546
<property name="text">
46-
<string>请输入微信文件的存储路径:</string>
47+
<string>需要删除多久以前的文件:</string>
4748
</property>
4849
<property name="textFormat">
4950
<enum>Qt::AutoText</enum>
5051
</property>
5152
</widget>
5253
</item>
54+
<item row="10" column="0" colspan="3">
55+
<widget class="QLabel" name="label_6">
56+
<property name="text">
57+
<string>Made by blackboxo</string>
58+
</property>
59+
<property name="alignment">
60+
<set>Qt::AlignCenter</set>
61+
</property>
62+
<property name="margin">
63+
<number>0</number>
64+
</property>
65+
<property name="openExternalLinks">
66+
<bool>true</bool>
67+
</property>
68+
</widget>
69+
</item>
70+
<item row="0" column="1" colspan="2">
71+
<widget class="QLineEdit" name="lineEdit">
72+
<property name="minimumSize">
73+
<size>
74+
<width>0</width>
75+
<height>0</height>
76+
</size>
77+
</property>
78+
<property name="text">
79+
<string/>
80+
</property>
81+
<property name="placeholderText">
82+
<string>类似C:\Users\xx\Documents\WeChat Files\xx</string>
83+
</property>
84+
</widget>
85+
</item>
5386
<item row="2" column="1">
5487
<widget class="QLineEdit" name="lineEdit_2">
5588
<property name="text">
5689
<string>2</string>
5790
</property>
5891
</widget>
5992
</item>
60-
<item row="3" column="0">
61-
<widget class="QLabel" name="label_4">
93+
<item row="2" column="2">
94+
<widget class="QLabel" name="label_3">
6295
<property name="font">
6396
<font>
6497
<family>宋体</family>
@@ -68,24 +101,17 @@
68101
</font>
69102
</property>
70103
<property name="text">
71-
<string>想要删除的文件类型:</string>
104+
<string>个月前</string>
72105
</property>
73106
<property name="textFormat">
74107
<enum>Qt::AutoText</enum>
75108
</property>
76109
</widget>
77110
</item>
78-
<item row="7" column="1">
79-
<widget class="QPushButton" name="pushButton">
80-
<property name="font">
81-
<font>
82-
<pointsize>12</pointsize>
83-
<weight>75</weight>
84-
<bold>true</bold>
85-
</font>
86-
</property>
111+
<item row="9" column="0">
112+
<widget class="QLabel" name="label_7">
87113
<property name="text">
88-
<string>确定</string>
114+
<string/>
89115
</property>
90116
</widget>
91117
</item>
@@ -106,24 +132,8 @@
106132
</property>
107133
</widget>
108134
</item>
109-
<item row="0" column="1" colspan="2">
110-
<widget class="QLineEdit" name="lineEdit">
111-
<property name="minimumSize">
112-
<size>
113-
<width>0</width>
114-
<height>0</height>
115-
</size>
116-
</property>
117-
<property name="text">
118-
<string/>
119-
</property>
120-
<property name="placeholderText">
121-
<string>类似C:\Users\xx\Documents\WeChat Files\xx</string>
122-
</property>
123-
</widget>
124-
</item>
125-
<item row="2" column="2">
126-
<widget class="QLabel" name="label_3">
135+
<item row="0" column="0">
136+
<widget class="QLabel" name="label">
127137
<property name="font">
128138
<font>
129139
<family>宋体</family>
@@ -133,17 +143,20 @@
133143
</font>
134144
</property>
135145
<property name="text">
136-
<string>个月前</string>
146+
<string>请输入微信文件的存储路径:</string>
137147
</property>
138148
<property name="textFormat">
139149
<enum>Qt::AutoText</enum>
140150
</property>
141151
</widget>
142152
</item>
143-
<item row="3" column="1" colspan="2">
144-
<widget class="QCheckBox" name="checkBox">
145-
<property name="enabled">
146-
<bool>true</bool>
153+
<item row="5" column="1" colspan="2">
154+
<widget class="QCheckBox" name="checkBox_3">
155+
<property name="minimumSize">
156+
<size>
157+
<width>0</width>
158+
<height>0</height>
159+
</size>
147160
</property>
148161
<property name="font">
149162
<font>
@@ -153,21 +166,22 @@
153166
</font>
154167
</property>
155168
<property name="text">
156-
<string>图片类缓存(来自小程序、公众号等)</string>
169+
<string>图片(JPG 等)</string>
157170
</property>
158171
<property name="checked">
159172
<bool>true</bool>
160173
</property>
161174
</widget>
162175
</item>
163-
<item row="5" column="1" colspan="2">
164-
<widget class="QCheckBox" name="checkBox_3">
165-
<property name="minimumSize">
166-
<size>
167-
<width>0</width>
168-
<height>0</height>
169-
</size>
176+
<item row="1" column="1" colspan="2">
177+
<widget class="QLabel" name="label_5">
178+
<property name="text">
179+
<string>微信左下角-&gt;设置-&gt;通用设置-&gt;打开文件夹-&gt;复制路径</string>
170180
</property>
181+
</widget>
182+
</item>
183+
<item row="6" column="1" colspan="2">
184+
<widget class="QCheckBox" name="checkBox_4">
171185
<property name="font">
172186
<font>
173187
<pointsize>11</pointsize>
@@ -176,41 +190,49 @@
176190
</font>
177191
</property>
178192
<property name="text">
179-
<string>图片(JPG 等)</string>
193+
<string>视频(视频文件和视频的封面图)</string>
180194
</property>
181195
<property name="checked">
182196
<bool>true</bool>
183197
</property>
184198
</widget>
185199
</item>
186-
<item row="2" column="0">
187-
<widget class="QLabel" name="label_2">
200+
<item row="7" column="1">
201+
<widget class="QPushButton" name="pushButton">
188202
<property name="font">
189203
<font>
190-
<family>宋体</family>
191-
<pointsize>11</pointsize>
204+
<pointsize>12</pointsize>
192205
<weight>75</weight>
193206
<bold>true</bold>
194207
</font>
195208
</property>
196209
<property name="text">
197-
<string>需要删除多久以前的文件:</string>
198-
</property>
199-
<property name="textFormat">
200-
<enum>Qt::AutoText</enum>
210+
<string>确定</string>
201211
</property>
202212
</widget>
203213
</item>
204-
<item row="1" column="1" colspan="2">
205-
<widget class="QLabel" name="label_5">
214+
<item row="3" column="1" colspan="2">
215+
<widget class="QCheckBox" name="checkBox">
216+
<property name="enabled">
217+
<bool>true</bool>
218+
</property>
219+
<property name="font">
220+
<font>
221+
<pointsize>11</pointsize>
222+
<weight>75</weight>
223+
<bold>true</bold>
224+
</font>
225+
</property>
206226
<property name="text">
207-
<string>微信左下角-&gt;设置-&gt;通用设置-&gt;打开文件夹-&gt;复制路径</string>
227+
<string>图片类缓存(来自小程序、公众号等)</string>
228+
</property>
229+
<property name="checked">
230+
<bool>true</bool>
208231
</property>
209232
</widget>
210233
</item>
211234
</layout>
212235
</widget>
213-
<widget class="QStatusBar" name="statusbar"/>
214236
</widget>
215237
<resources/>
216238
<connections/>

0 commit comments

Comments
 (0)