This repository was archived by the owner on Jun 24, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathtaskcheck.py
More file actions
235 lines (229 loc) 路 11 KB
/
Copy pathtaskcheck.py
File metadata and controls
235 lines (229 loc) 路 11 KB
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
from os import *
from tkinter import *
w = Tk()
def start():
w.title('袟邪写邪薪懈械')
w.geometry('400x1140')
task()
task_check()
return mainloop()
def open_photoshop():
#袩褍褌褜 泻 锌褉芯谐褉邪屑屑械
startfile(r"袟邪锌褍褋泻 锌褉芯谐褉邪屑屑褘")
def task1():
startfile('袨褌泻褉褘褌懈械 褎邪泄谢胁')
def task1_1():
startfile('袨褌泻褉褘褌懈械 褎邪泄谢胁')
def task1_2():
startfile('袨褌泻褉褘褌懈械 褎邪泄谢胁')
def task2():
startfile('袨褌泻褉褘褌懈械 褎邪泄谢胁')
def task2_1():
startfile('袨褌泻褉褘褌懈械 褎邪泄谢胁')
def task3():
startfile('袨褌泻褉褘褌懈械 褎邪泄谢胁')
def task3_1():
startfile('袨褌泻褉褘褌懈械 褎邪泄谢胁')
def task4():
startfile('袨褌泻褉褘褌懈械 褎邪泄谢胁')
def task5():
startfile('袨褌泻褉褘褌懈械 褎邪泄谢胁')
def task():
t1=Label(w, text='袩褉邪泻褌懈褔械褋泻邪褟 2',font=('Arial Bord',20))
t1.grid(column=0, row=0)
t1_1 = Label(w, text='袩褉邪泻褌懈褔械褋泻邪褟 2.1', font=('Arial Bord', 20))
t1_1.grid(column=0, row=1)
t1_2 = Label(w, text='袩褉邪泻褌懈褔械褋泻邪褟 2.2', font=('Arial Bord', 20))
t1_2.grid(column=0, row=2)
t2=Label(w, text='袩褉邪泻褌懈褔械褋泻邪褟 3',font=('Arial Bord',20))
t2.grid(column=0, row=3)
t2_1 = Label(w, text='袩褉邪泻褌懈褔械褋泻邪褟 3.1', font=('Arial Bord', 20))
t2_1.grid(column=0, row=4)
t3=Label(w, text='袩褉邪泻褌懈褔械褋泻邪褟 4',font=('Arial Bord',20))
t3.grid(column=0, row=5)
t3_1 = Label(w, text='袩褉邪泻褌懈褔械褋泻邪褟 4.1', font=('Arial Bord', 20))
t3_1.grid(column=0, row=6)
t4=Label(w, text='袩褉邪泻褌懈褔械褋泻邪褟 5',font=('Arial Bord',20))
t4.grid(column=0, row=7)
t5=Label(w, text='袩褉邪泻褌懈褔械褋泻邪褟 7',font=('Arial Bord',20))
t5.grid(column=0, row=8)
t5_1 = Label(w, text='袩褉邪泻褌懈褔械褋泻邪褟 7.1', font=('Arial Bord', 20))
t5_1.grid(column=0, row=9)
t5_2 = Label(w, text='袩褉邪泻褌懈褔械褋泻邪褟 7.2', font=('Arial Bord', 20))
t5_2.grid(column=0, row=10)
t5_3 = Label(w, text='袩褉邪泻褌懈褔械褋泻邪褟 7.3', font=('Arial Bord', 20))
t5_3.grid(column=0, row=11)
t6=Label(w, text='袩褉邪泻褌懈褔械褋泻邪褟 8',font=('Arial Bord',20))
t6.grid(column=0, row=12)
t6_1 = Label(w, text='袩褉邪泻褌懈褔械褋泻邪褟 8.1', font=('Arial Bord', 20))
t6_1.grid(column=0, row=13)
t7=Label(w, text='袩褉邪泻褌懈褔械褋泻邪褟 9',font=('Arial Bord',20))
t7.grid(column=0, row=14)
t8=Label(w, text='袩褉邪泻褌懈褔械褋泻邪褟 10',font=('Arial Bord',20))
t8.grid(column=0, row=15)
t9=Label(w, text='袩褉邪泻褌懈褔械褋泻邪褟 11',font=('Arial Bord',20))
t9.grid(column=0, row=16)
t10=Label(w, text='袩褉邪泻褌懈褔械褋泻邪褟 12',font=('Arial Bord',20))
t10.grid(column=0, row=17)
t11=Label(w, text='袩褉邪泻褌懈褔械褋泻邪褟 13',font=('Arial Bord',20))
t11.grid(column=0, row=18)
t12=Label(w, text='袩褉邪泻褌懈褔械褋泻邪褟 14',font=('Arial Bord',20))
t12.grid(column=0, row=19)
t13=Label(w, text='袩褉邪泻褌懈褔械褋泻邪褟 15',font=('Arial Bord',20))
t13.grid(column=0, row=20)
t14=Label(w, text='袩褉邪泻褌懈褔械褋泻邪褟 15.1',font=('Arial Bord',20))
t14.grid(column=0, row=21)
t14 = Label(w, text='袩褉邪泻褌懈褔械褋泻邪褟 16', font=('Arial Bord', 20))
t14.grid(column=0, row=22)
t15=Label(w, text='袩褉邪泻褌懈褔械褋泻邪褟 17',font=('Arial Bord',20))
t15.grid(column=0, row=23)
def task_check():
#袧邪锌懈褋邪褌褜 锌褍褌褜 泻 锌邪锌泻懈 褋 褎邪泄谢邪屑懈
task_place='袩邪锌泻邪'
list=listdir(task_place)
#袧邪锌懈褋邪褌褜 薪邪蟹胁邪薪懈械 懈 褉邪褋褕懈褉械薪懈械 褎邪泄谢邪
if '肖邪泄谢' in list:
b1 = Button(w, text='袙褘锌芯谢薪械薪芯', font=('Arial Bord', 16),fg="green",command=task1)
b1.grid(column=2, row=0)
else:
b1 = Button(w, text='袧械 胁褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="red", command=open_photoshop)
b1.grid(column=2, row=0)
if '肖邪泄谢' in list:
b1_1 = Button(w, text='袙褘锌芯谢薪械薪芯', font=('Arial Bord', 16),fg="green",command=task1_1)
b1_1.grid(column=2, row=1)
else:
b1_1 = Button(w, text='袧械 胁褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="red", command=open_photoshop)
b1_1.grid(column=2, row=1)
if '肖邪泄谢' in list:
b1_2 = Button(w, text='袙褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="green",command=task1_2)
b1_2.grid(column=2, row=2)
else:
b1_2 = Button(w, text='袧械 胁褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="red", command=open_photoshop)
b1_2.grid(column=2, row=2)
if '肖邪泄谢' in list:
b3 = Button(w, text='袙褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="green",command=task2)
b3.grid(column=2, row=3)
else:
b3 = Button(w, text='袧械 胁褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="red", command=open_photoshop)
b3.grid(column=2, row=3)
if '肖邪泄谢' in list:
b3_1 = Button(w, text='袙褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="green",command=task2_1)
b3_1.grid(column=2, row=4)
else:
b3_1 = Button(w, text='袧械 胁褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="red", command=open_photoshop)
b3_1.grid(column=2, row=4)
if '肖邪泄谢' in list:
b4 = Button(w, text='袙褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="green",command=task3)
b4.grid(column=2, row=5)
else:
b4 = Button(w, text='袧械 胁褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="red", command=open_photoshop)
b4.grid(column=2, row=5)
if '肖邪泄谢' in list:
b4_1 = Button(w, text='袙褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="green",command=task3_1)
b4_1.grid(column=2, row=6)
else:
b4_1 = Button(w, text='袧械 胁褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="red", command=open_photoshop)
b4_1.grid(column=2, row=6)
if '肖邪泄谢' in list:
b5 = Button(w, text='袙褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="green",command=task4)
b5.grid(column=2, row=7)
else:
b5 = Button(w, text='袧械 胁褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="red",command=open_photoshop)
b5.grid(column=2, row=7)
if '肖邪泄谢' in list:
b6 = Button(w, text='袙褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="green",command=task5)
b6.grid(column=2, row=8)
else:
b6 = Button(w, text='袧械 胁褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="red", command=open_photoshop)
b6.grid(column=2, row=8)
if '肖邪泄谢' in list:
b6_1 = Button(w, text='袙褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="green", command=open_photoshop)
b6_1.grid(column=2, row=9)
else:
b6_1 = Button(w, text='袧械 胁褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="red", command=open_photoshop)
b6_1.grid(column=2, row=9)
if '肖邪泄谢' in list:
b6_2 = Button(w, text='袙褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="green", command=open_photoshop)
b6_2.grid(column=2, row=10)
else:
b6_2 = Button(w, text='袧械 胁褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="red", command=open_photoshop)
b6_2.grid(column=2, row=10)
if '肖邪泄谢' in list:
b6_3 = Button(w, text='袙褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="green")
b6_3.grid(column=2, row=11)
else:
b6_3 = Button(w, text='袧械 胁褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="red", command=open_photoshop)
b6_3.grid(column=2, row=11)
if '肖邪泄谢' in list:
b7 = Button(w, text='袙褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="green", command=open_photoshop)
b7.grid(column=2, row=12)
else:
b7 = Button(w, text='袧械 胁褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="red", command=open_photoshop)
b7.grid(column=2, row=12)
if '肖邪泄谢' in list:
b7_1 = Button(w, text='袙褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="green", command=open_photoshop)
b7_1.grid(column=2, row=13)
else:
b7_1 = Button(w, text='袧械 胁褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="red", command=open_photoshop)
b7_1.grid(column=2, row=13)
if '肖邪泄谢' in list:
b8 = Button(w, text='袙褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="green")
b8.grid(column=2, row=14)
else:
b8 = Button(w, text='袧械 胁褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="red", command=open_photoshop)
b8.grid(column=2, row=14)
if '肖邪泄谢' in list:
b9 = Button(w, text='袙褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="green")
b9.grid(column=2, row=15)
else:
b9 = Button(w, text='袧械 胁褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="red", command=open_photoshop)
b9.grid(column=2, row=15)
if '肖邪泄谢' in list:
b10 = Button(w, text='袙褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="green")
b10.grid(column=2, row=16)
else:
b10 = Button(w, text='袧械 胁褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="red", command=open_photoshop)
b10.grid(column=2, row=16)
if '肖邪泄谢' in list:
b11 = Button(w, text='袙褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="green")
b11.grid(column=2, row=17)
else:
b11 = Button(w, text='袧械 胁褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="red", command=open_photoshop)
b11.grid(column=2, row=17)
if '肖邪泄谢' in list:
b12 = Button(w, text='袙褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="green")
b12.grid(column=2, row=18)
else:
b12 = Button(w, text='袧械 胁褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="red", command=open_photoshop)
b12.grid(column=2, row=18)
if '肖邪泄谢' in list:
b13 = Button(w, text='袙褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="green")
b13.grid(column=2, row=19)
else:
b13 = Button(w, text='袧械 胁褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="red", command=open_photoshop)
b13.grid(column=2, row=19)
if '肖邪泄谢' in list:
b13 = Button(w, text='袙褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="green")
b13.grid(column=2, row=20)
else:
b13 = Button(w, text='袧械 胁褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="red", command=open_photoshop)
b13.grid(column=2, row=20)
if '肖邪泄谢' in list:
b14 = Button(w, text='袙褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="green")
b14.grid(column=2, row=21)
else:
b14 = Button(w, text='袧械 胁褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="red", command=open_photoshop)
b14.grid(column=2, row=21)
if '肖邪泄谢' in list:
b14_1 = Button(w, text='袙褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="green")
b14_1.grid(column=2, row=22)
else:
b14_1 = Button(w, text='袧械 胁褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="red", command=open_photoshop)
b14_1.grid(column=2, row=22)
if '肖邪泄谢' in list:
b15 = Button(w, text='袙褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="green")
b15.grid(column=2, row=23)
else:
b15 = Button(w, text='袧械 胁褘锌芯谢薪械薪芯', font=('Arial Bord', 16), fg="red", command=open_photoshop)
b15.grid(column=2, row=23)
start()