-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
temp_cleaner_gui_r4.7.py
2270 lines (2041 loc) · 147 KB
/
temp_cleaner_gui_r4.7.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
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
"""
The Project Temp_Cleaner GUI by Insertx2k Dev.
A simple temporary folders cleaning solution made by Insertx2k Dev under the GNU General Public License
That will help you free up a lot of disk space in your computer through erasing all the Temporary folders
Exist in almost all temporary folders directories either in your C:\ drive (Windows drive) or other drives.
Free to modify and redistribute to fit in your needs as explained in the GNU General Public License v2.0 or later.
License for the Project Temp_Cleaner GUI.
A simple program made to help you erase temporary files in your Windows-based PC.
Copyright (C) 2021 - Insertx2k Dev (Mr.X)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
See github.com/insertx2k/temp_cleaner_gui
For a much better github page, try visiting https://insertx2k.github.io/temp_cleaner_gui
The program Temp_Cleaner GUI was previously Temp_Cleaner and it was using a CUI instead of a GUI.
"""
# defining the global variable that holds the font_size of the scrolledtext.ScrolledText widget
# named 'showLicense'
font_size = 14
print()
print("Greetings from the Temp_Cleaner GUI Project.")
print("By Insertx2k Dev (Mr.X)")
print("Github : https://github.com/insertx2k/temp_cleaner_gui")
print("Twitter : https://twitter.com/insertplayztw")
print()
print("Powered by Minimal Accessibility Pack v1.0 by Insertx2k Dev (Mr.X)")
print()
# Importing all the required 3rd party modules.
# from re import L -> This import was no longer required as of Update 3.1
from tkinter import *
# import WINTCMD -> This import was no longer required as of Update 3.1
from tkinter import messagebox
from tkinter import ttk
import os
from PIL import Image, ImageTk
import time
import configparser
from tkinter import filedialog
from tkinter import scrolledtext
import subprocess
from subprocess import PIPE
import awesometkinter as atk
import sys
import threading
import platform
# Defining the function that will get the current values of an configparser values.
GetConfig = configparser.ConfigParser()
GetConfig.read('Config.ini')
class MainWindowLightMode(Tk):
def __init__(self):
global GetConfig, font_size
super().__init__() # initializing the self.
# Trying to change the theme.
try:
# Changing the self's theme.
self.style = ttk.Style()
# self.style.theme_use("native")
except Exception as excpt:
print(f"The following exception had occured while trying to apply the theme 'native' \n {excpt}")
# self.configure(background='white')
try:
self.login = os.getlogin()
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
WindowNewTitle = f"The Temp_Cleaner GUI Project (v4.7) (Windows) Running On: {self.login}'s PC (Powered by Minimal Accessibility Pack v1.0)"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
WindowNewTitle = f"(مدعم بواسطة حزمة ادوات امكانية الوصول الأدني الاصدار 1.0) (مدعم بواسطة حزمة اللغة العربية الاصدار 1.0) {self.login} الإصدار 4.7 يعمل علي جهاز Temp_Cleaner GUI مشروع "
else:
WindowNewTitle = f"The Temp_Cleaner GUI Project (v4.7) (Windows) Running On: {self.login}'s PC (Powered by Minimal Accessibility Pack v1.0)"
self.title(WindowNewTitle)
except Exception as excpt129:
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
WindowNewTitle = "The Temp_Cleaner GUI Project (v4.7) (Windows) (Powered by Minimal Accessibility Pack v1.0)"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
WindowNewTitle = "(مدعم بواسطة حزمة ادوات امكانية الوصول الأدني الاصدار 1.0) (مدعم بواسطة حزمة اللغة العربية الاصدار 1.0) الإصدار 4.7 Temp_Cleaner GUI مشروع "
else:
WindowNewTitle = "The Temp_Cleaner GUI Project (v4.7) (Windows) (Powered by Minimal Accessibility Pack v1.0)"
self.title(WindowNewTitle)
self.geometry('1225x600')
# attempting to change the iconbitmap attribute of the window.
try:
self.iconbitmap("icon0.ico")
except Exception as excpt12: # better high level exception handling.
messagebox.showerror("ERROR 1 in ICONBITMAP", f"Unable to load icon file for this window due to exception:\n{excpt12}")
pass
self.minsize(1225,600)
# Changing the self's color.
# self.configure(background='black')
# Configuring the scrollbar to make it available for the main program's window.
# Create a main frame.
if str(GetConfig['ProgConfig']['appearancemode']) == '1': # light mode
self.main_frame = Frame(self)
self.main_frame.pack(fill=BOTH, expand=1)
# Create a canvas.
self.main_canvas = Canvas(self.main_frame)
self.main_canvas.pack(side=LEFT, fill=BOTH, expand=1)
# Add a scrollbar to the canvas
self.main_scrollbar = atk.SimpleScrollbar(self.main_frame, orient=VERTICAL, command=self.main_canvas.yview, bg=atk.DEFAULT_COLOR, slider_color='grey', width=12)
self.main_scrollbar.pack(side=RIGHT, fill=Y)
# Configure the canvas.
self.main_canvas.configure(yscrollcommand=self.main_scrollbar.set)
self.main_canvas.bind('<Configure>', lambda e: self.main_canvas.configure(scrollregion = self.main_canvas.bbox("all")))
# Create another frame INSIDE the canvas.
self.show_frame = Frame(self.main_canvas)
# Add that New frame to a window in the canvas.
self.main_canvas.create_window((0,0), window=self.show_frame, anchor="nw")
self.banner = PhotoImage(file="banner.png")
self.banner_show = Label(self.show_frame, image=self.banner, width=1200, height=300)
self.banner_show.grid(column=0, row=1, sticky='w')
elif str(GetConfig['ProgConfig']['appearancemode']) == '2': # dark mode.
self.main_frame = Frame(self, background=atk.DEFAULT_COLOR)
self.main_frame.pack(fill=BOTH, expand=1)
# Create a canvas.
self.main_canvas = Canvas(self.main_frame, background=atk.DEFAULT_COLOR)
self.main_canvas.pack(side=LEFT, fill=BOTH, expand=1)
# Add a scrollbar to the canvas
self.main_scrollbar = atk.SimpleScrollbar(self.main_frame, orient=VERTICAL, command=self.main_canvas.yview, bg=atk.DEFAULT_COLOR, slider_color='grey', width=12)
self.main_scrollbar.pack(side=RIGHT, fill=Y)
# Configure the canvas.
self.main_canvas.configure(yscrollcommand=self.main_scrollbar.set)
self.main_canvas.bind('<Configure>', lambda e: self.main_canvas.configure(scrollregion = self.main_canvas.bbox("all")))
# Create another frame INSIDE the canvas.
self.show_frame = Frame(self.main_canvas, background=atk.DEFAULT_COLOR)
# Add that New frame to a window in the canvas.
self.main_canvas.create_window((0,0), window=self.show_frame, anchor="nw")
self.banner = PhotoImage(file="banner.png")
self.banner_show = Label(self.show_frame, image=self.banner, width=1200, height=300, background=atk.DEFAULT_COLOR)
self.banner_show.grid(column=0, row=1, sticky='w')
self.style.configure('TLabelframe.Label', background=atk.DEFAULT_COLOR, foreground='white')
self.style.configure('Label', background=atk.DEFAULT_COLOR)
self.style.configure('Label', foreground='white')
self.style.configure('TLabelframe', background=atk.DEFAULT_COLOR, foreground='white')
self.style.configure('TCheckbutton', background=atk.DEFAULT_COLOR, foreground='white')
self.style.configure('label', foreground='white')
# self.style.configure('Vertical.TScrollbar', background=atk.DEFAULT_COLOR, foreground=atk.DEFAULT_COLOR)
else:
messagebox.showerror("Unsupported appearance mode in Config file", f"Unsupported appearance mode in config file: {str(GetConfig['ProgConfig']['appearancemode'])}.\nThe program will continue with the Light mode instead.")
self.main_frame = Frame(self)
self.main_frame.pack(fill=BOTH, expand=1)
# Create a canvas.
self.main_canvas = Canvas(self.main_frame)
self.main_canvas.pack(side=LEFT, fill=BOTH, expand=1)
# Add a scrollbar to the canvas
self.main_scrollbar = atk.SimpleScrollbar(self.main_frame, orient=VERTICAL, command=self.main_canvas.yview, bg=atk.DEFAULT_COLOR, slider_color='grey', width=12)
self.main_scrollbar.pack(side=RIGHT, fill=Y)
# Configure the canvas.
self.main_canvas.configure(yscrollcommand=self.main_scrollbar.set)
self.main_canvas.bind('<Configure>', lambda e: self.main_canvas.configure(scrollregion = self.main_canvas.bbox("all")))
# Create another frame INSIDE the canvas.
self.show_frame = Frame(self.main_canvas)
# Add that New frame to a window in the canvas.
self.main_canvas.create_window((0,0), window=self.show_frame, anchor="nw")
self.banner = PhotoImage(file="banner.png")
self.banner_show = Label(self.show_frame, image=self.banner, width=1200, height=300)
self.banner_show.grid(column=0, row=1, sticky='w')
def execute_theprogram():
self.ShowNotificationDone = True
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
new_btn_text = "Executing"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
new_btn_text = "جاري التنظيف..."
else:
new_btn_text = "Executing"
self.exec_btn.configure(text=new_btn_text, command=None)
# show_output() # Calling the show output method so you can actually see what's happening inside.
self.output_show.configure(state='normal')
self.selection = self.var0.get()
if self.selection == '1':
self.process = subprocess.getoutput('rmdir /s /q "%systemdrive%\\$Recycle.bin"')
self.output_show.insert(END, f"\n {self.process}")
self.selection1 = self.var1.get()
if self.selection1 == '1':
self.process = subprocess.getoutput(' cd /d "%windir%"&erase /s /f /q prefetch')
self.output_show.insert(END, f"\n {self.process}")
self.selection2 = self.var2.get()
if self.selection2 == '1':
self.process = subprocess.getoutput(' cd /d %localappdata%&erase /s /f /q "D3DSCache"')
self.output_show.insert(END, f"\n {self.process}")
self.selection3 = self.var3.get()
if self.selection3 == '1':
self.process = subprocess.getoutput(' cd /d %windir%&erase /s /f /q "Temp"')
self.output_show.insert(END, f"\n {self.process}")
self.selection4 = self.var4.get()
if self.selection4 == '1':
self.process = subprocess.getoutput(' cd /d %localappdata%&erase /s /f /q "Temp"')
self.output_show.insert(END, f"\n {self.process}")
self.selection5 = self.var5.get()
if self.selection5 == '1':
self.process = subprocess.getoutput(' cd /d %localappdata%&cd Google&cd Chrome&cd "User Data"&cd "Default"&erase /s /f /q "GPUCache"&erase /s /f /q Cache&erase /s /f /q "Code Cache"')
self.output_show.insert(END, f"\n {self.process}")
self.selection6 = self.var6.get()
if self.selection6 == '1':
self.process = subprocess.getoutput(' cd /d %localappdata%&cd Google&cd Chrome&cd "User Data"&cd "Default"&del /s /q "Cookies"&del /s /q "Cookies-journal"')
self.output_show.insert(END, f"\n {self.process}")
self.selection9 = self.var7.get()
if self.selection9 == '1':
self.process = subprocess.getoutput(' cd /d "%systemdrive%\\Users\\Default\\AppData\\Local"&erase /s /f /q Temp')
self.output_show.insert(END, f"\n {self.process}")
self.selection10 = self.var8.get()
if self.selection10 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%\\Microsoft\\Windows"&erase /s /f /q "INetCache"')
self.output_show.insert(END, f"\n {self.process}")
self.selection11 = self.var9.get()
if self.selection11 == '1':
self.process = subprocess.getoutput(' @echo off | clip')
self.output_show.insert(END, f"\n {self.process}")
self.selection12 = self.var10.get()
if self.selection12 == '1':
self.process = subprocess.getoutput(' cd /d %localappdata%&cd microsoft&cd windows&cd explorer&del /s /q *thumbcache*&cd /d %localappdata%\microsoft\windows\explorer&del /s /q *thumb*')
self.output_show.insert(END, f"\n {self.process}")
self.selection13 = self.var11.get()
if self.selection13 == '1':
self.process = subprocess.getoutput(' cd /d %userprofile%\\AppData\\Roaming&cd Microsoft&cd Windows&erase /s /f /q Recent')
self.output_show.insert(END, f"\n {self.process}")
self.selection14 = self.var12.get()
if self.selection14 == '1':
self.process = subprocess.getoutput(' cd /d "%userprofile%\\AppData\\Roaming\\discord"&erase /s /f /q "Cache"&erase /s /f /q "Code Cache"&erase /s /f /q "GPUCache"&erase /s /f /q "Local Storage"')
self.output_show.insert(END, f"\n {self.process}")
self.selection15 = self.var13.get()
if self.selection15 == '1':
self.process = subprocess.getoutput(' cd /d "%userprofile%\\AppData\\Roaming\\GIMP\\2.10"&erase /s /f /q "tmp"')
self.output_show.insert(END, f"\n {self.process}")
self.selection16 = self.var14.get()
if self.selection16 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%\\Steam\\htmlcache"&erase /s /f /q "Cache"&erase /s /f /q "Code Cache"&erase /s /f /q "GPUCache"')
self.output_show.insert(END, f"\n {self.process}")
self.selection17 = self.var15.get()
if self.selection17 == '1':
self.process = subprocess.getoutput(' cd /d "%windir%\\SoftwareDistribution"&del /f /s /q "Download"')
self.output_show.insert(END, f"\n {self.process}")
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
btn0_txt = "After you delete all Downloaded files by the Windows Update Service you should restart the whole service to commit changes you did to it\nWould you like to restart the Windows Update Service?"
btn0_title = "Restart Windows Update Service"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
btn0_txt = "بعد مسح جميع الملفات التي تم تحميلها بواسطة برنامج ترقية ويندوز يجب عليك إعادة تشغيل الخدمة الخاصة به لتطبيق التعديلات التي اتممتها عليه\nهل تود إعادة تشغيل خدمة ترقية ويندوز؟"
btn0_title = "إعادة تشغيل خدمة برنامج ترقية ويندوز"
else:
btn0_txt = "After you delete all Downloaded files by the Windows Update Service you should restart the whole service to commit changes you did to it\nWould you like to restart the Windows Update Service?"
btn0_title = "Restart Windows Update Service"
self.reboot_uwp = messagebox.askquestion(btn0_title, btn0_txt)
if self.reboot_uwp == "yes":
self.self_2 = Tk()
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
title_txt = "Restart Windows Update Service"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
title_txt = "إعادة تشغيل خدمة ترقية ويندوز"
else:
title_txt = "Restart Windows Update Service"
self.self_2.title(title_txt)
self.self_2.geometry('500x90')
self.self_2.resizable(False,False)
try:
self.self_2.iconbitmap("icon0.ico")
except Exception as excpt24:
messagebox.showerror("ERROR 1 in ICONBITMAP process", f"Unable to load the icon file for this window due to Exception:\n{excpt24}")
pass
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
lbl0_txt = "Restarting Windows Update Service..."
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
lbl0_txt = "جاري إعادة تشغيل خدمة ترقية ويندوز..."
else:
lbl0_txt = "Restarting Windows Update Service..."
# Defining some labels used to show the user that something is happening inside.
self.lbl0x = Label(self.self_2, text=lbl0_txt, font=("Arial", 19))
self.lbl0x.place(x=25 ,y=20)
# Defining the actions used to restart the Windows update service.
self.process = subprocess.getoutput('net start wuauserv')
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
lbl1_txt = "Windows Update Service Has been successfully restarted!"
lbl2_txt_additionals = "Done restarting the Windows Update Service!"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
lbl1_txt = "تمت إعادة تشغيل خدمة ترقية ويندوز"
lbl2_txt_additionals = "تمت إعادة تشغيل خدمة ترقية ويندوز"
else:
lbl1_txt = "Windows Update Service Has been successfully restarted!"
lbl2_txt_additionals = "Done restarting the Windows Update Service!"
# Defining the commands used to show the user that all pending operations has been successfully completed!
messagebox.showinfo(title_txt, lbl1_txt)
# Defining the mainloop destroy once the execution is done.
self.self_2.destroy()
self.self_2.mainloop()
messagebox.showinfo(title_txt, lbl2_txt_additionals)
else:
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
msgbox_rwup_title = "Restart Windows Update Service"
msgbox_rwup_content = "Expect your device to have problems with Windows Update if you didn't restart it as soon as possible then."
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
msgbox_rwup_title = "إعادة تشغيل خدمة ترقية ويندوز"
msgbox_rwup_content = "توقع ان تواجه مشاكل في استخدام خدمة ترقية ويندوز"
else:
msgbox_rwup_title = "Restart Windows Update Service"
msgbox_rwup_content = "Expect your device to have problems with Windows Update if you didn't restart it as soon as possible then."
messagebox.showinfo(msgbox_rwup_title, msgbox_rwup_content)
self.selection18 = self.var16.get()
if self.selection18 == '1':
self.process = subprocess.getoutput(' cd /d %localappdata%\\Microsoft\\Windows&erase /s /f /q "Caches"')
self.output_show.insert(END, f"\n {self.process}")
self.selection19 = self.var17.get()
if self.selection19 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%\\Microsoft\\Windows"&erase /s /f /q "INetCookies"')
self.output_show.insert(END, f"\n {self.process}")
self.selection20 = self.var18.get()
if self.selection20 == '1':
self.process = subprocess.getoutput(' cd /d %localappdata%\\Microsoft\\Windows&erase /s /f /q "IECompatCache"&erase /s /f /q "IECompatUaCache"')
self.output_show.insert(END, f"\n {self.process}")
self.selection21 = self.var19.get()
if self.selection21 == '1':
self.process = subprocess.getoutput(' cd /d %localappdata%\\Microsoft\\Windows&erase /s /f /q "IEDownloadHistory"')
self.output_show.insert(END, f"\n {self.process}")
self.selection22 = self.var20.get()
if self.selection22 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%\\Microsoft\\Windows"&erase /s /f /q "ActionCenterCache"')
self.output_show.insert(END, f"\n {self.process}")
self.selection23 = self.var21.get()
if self.selection23 == '1':
self.process = subprocess.getoutput(' cd /d %localappdata%\\Microsoft\\Windows&erase /s /f /q "AppCache"')
self.output_show.insert(END, f"\n {self.process}")
self.selection24 = self.var22.get()
if self.selection24 == '1':
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
msgbox_msstoreedge_title = "Clean Store-based MS Edge Cached Data"
msgbox_msstoreedge_content = "Cleaning Store-based MS Edge cached data can not be done automatically, which means you are supposed to do that manually, which will make this tool open an explorer (Windows Explorer) window for you showing you the folder where you are supposed to clean MS-Store-Based EDGE Webcache data\nPlease keep in mind that you shouldn't leave the directory opened to you by this tool\nSo do you wish to processed?"
msgbox_msstoreedge_content2 = "Opening the directory for you\nDon't forget to look for the folder Microsoft.MicrosoftEdge_[a random number], and go inside the AC folder inside of it, you will then be able to see all MS Store-based edge webcached data."
done_txt = "Done!"
canceled_by_user_txt = "Operation canceled by the user."
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
msgbox_msstoreedge_title = "مسح الملفات المؤقتة الخاصة بمتصفح ميكروسوفت ادجي نسخة متجر ويندوز"
msgbox_msstoreedge_content = "تنظيف ملفات متصفح ميكروسوفت ادجي المؤقتة لا يمكن ان تتم بشكل تلقائي بل يجب عليك ان تقوم بها بنفسك، مما يعني انه سوف يتم فتح نافذة مستكشف ويندوز جديدة لك بها المسار الصحيح الذي يجب عليك البحث فيه عن تلك الملفات\nبرجاء الوضع في الحسبان انه لايجب عليك الرجوع للخلف عن المسار المفتوح لك بواسطة هذه الاداة\nهل تود المتابعة؟"
msgbox_msstoreedge_content2 = "يتم فتح المسار من اجلك\nلا تنسي البحث عن المجلد Microsoft.MicrosoftEdge_[رقم عشوائي], ومن ثم ادخل في المجلد AC, سوف تجد فيه جميع الملفات المؤقتة لمتصفح ميكروسوفت ادجي نسخة متجر الويندوز"
done_txt = "تم!"
canceled_by_user_txt = "تمت مقاطعة العملية بواسطة المستخدم"
else:
msgbox_msstoreedge_title = "Clean Store-based MS Edge Cached Data"
msgbox_msstoreedge_content = "Cleaning Store-based MS Edge cached data can not be done automatically, which means you are supposed to do that manually, which will make this tool open an explorer (Windows Explorer) window for you showing you the folder where you are supposed to clean MS-Store-Based EDGE Webcache data\nPlease keep in mind that you shouldn't leave the directory opened to you by this tool\nSo do you wish to processed?"
msgbox_msstoreedge_content2 = "Opening the directory for you\nDon't forget to look for the folder Microsoft.MicrosoftEdge_[a random number], and go inside the AC folder inside of it, you will then be able to see all MS Store-based edge webcached data."
done_txt = "Done!"
canceled_by_user_txt = "Operation canceled by the user."
self.conf1 = messagebox.askquestion(msgbox_msstoreedge_title, msgbox_msstoreedge_content)
if self.conf1 == "yes":
messagebox.showinfo(msgbox_msstoreedge_title, msgbox_msstoreedge_content2)
self.process = subprocess.getoutput(' explorer.exe "%localappdata%\\Packages\\"')
self.output_show.insert(END, f"\n {self.process}")
messagebox.showinfo(msgbox_msstoreedge_title, done_txt)
else:
messagebox.showinfo(msgbox_msstoreedge_title, canceled_by_user_txt)
self.selection25 = self.var23.get()
if self.selection25 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%\\Microsoft\\Windows\\Explorer"&erase /s /f /q "ThumbCacheToDelete"')
self.output_show.insert(END, f"\n {self.process}")
self.selection26 = self.var24.get()
if self.selection26 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%\\Microsoft\\Edge\\User Data\\Default"&erase /s /f /q "GPUCache"&erase /s /f /q "Cache"&erase /s /f /q "Code Cache"')
self.output_show.insert(END, f"\n {self.process}")
self.selection27 = self.var25.get()
if self.selection27 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%\\Microsoft\\Edge\\User Data\\Default"&del /s /q "Cookies"&del /s /q "Cookies-journal"')
self.output_show.insert(END, f"\n {self.process}")
self.selection28 = self.var26.get()
if self.selection28 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%\\Roblox"&erase /s /f /q "Downloads"')
self.output_show.insert(END, f"\n {self.process}")
self.selection29 = self.var27.get()
if self.selection29 == '1':
self.process = subprocess.getoutput(' cd /d "%appdata%\\Adobe\\Adobe Photoshop 2020\\Adobe Photoshop 2020 Settings\\web-cache-temp"&erase /s /f /q "GPUCache"&erase /s /f /q "Code Cache"&del /s /f /q "Visited Links"')
self.output_show.insert(END, f"\n {self.process}")
self.selection30 = self.var28.get()
if self.selection30 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%\\VEGAS Pro\\17.0"&erase /s /f /q "File Explorer Thumbnails"&erase /s /f /q "Device Explorer Thumbnails"&del /s /f /q "*.autosave.veg.bak"&del /s /f /q "svfx_Ofx*.log"')
self.output_show.insert(END, f"\n {self.process}")
self.selection31 = self.var29.get()
if self.selection31 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%\\McNeel\\Rhinoceros"&erase /s /f /q "temp"')
self.output_show.insert(END, f"\n {self.process}")
self.selection32 = self.var30.get()
if self.selection32 == '1':
self.process = subprocess.getoutput(' cd /d "%userprofile%\\AppData\\LocalLow\\Microsoft"&erase /s /f /q /A:S "CryptnetUrlCache"')
self.output_show.insert(END, f"\n {self.process}")
self.selection33 = self.var31.get()
if self.selection33 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%\\pip"&erase /s /f /q "cache"')
self.output_show.insert(END, f"\n {self.process}")
self.selection34 = self.var32.get()
if self.selection34 == '1':
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
msgbox_eraserammap_title = "Empty Windows Workingsets"
msgbox_eraserammap_content = "Would you really like to run RAMMap by Sysinternals to empty RAM Workingsets?"
msgbox_confirm_defaultpath_txt = "The path of the RAMMap tool is set to '$DEFAULT', Continuing using the default configured RAMMap path."
msgbox_confirm_defaultpath_title = "Notification"
msgbox_commandsent_txt = "RAMMap.exe - Command sent."
msgbox_operationcanceledbyuser_txt = "Operation has been canceled."
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
msgbox_eraserammap_title = "تفريغ مجموعات العمل الخاصة بنظام ويندوز"
msgbox_eraserammap_content = "لتفريغ مجموعات العمل الخاصة بالبرامج التي تستهلك ذاكرة الوصول العشوائي؟ RAMMap من Sysinternals هل تريد حقا تشغيل البرنامج "
msgbox_confirm_defaultpath_txt = "RAMMap سوف يتم المتابعة بإستخدام المسار الإفتراضي المعين لأداة ، '$DEFAULT' تم تعيينه إلي RAMMap مسار المجلد الذي يحتوي علي الاداة "
msgbox_confirm_defaultpath_title = "إشعار"
msgbox_commandsent_txt = "RAMMap.exe - تم إرسال الامر."
msgbox_operationcanceledbyuser_txt = "تم إلغاء الامر."
else:
msgbox_eraserammap_title = "Empty Windows Workingsets"
msgbox_eraserammap_content = "Would you really like to run RAMMap by Sysinternals to empty RAM Workingsets?"
msgbox_confirm_defaultpath_txt = "The path of the RAMMap tool is set to '$DEFAULT', Continuing using the default configured RAMMap path."
msgbox_confirm_defaultpath_title = "Notification"
msgbox_commandsent_txt = "RAMMap.exe - Command sent."
msgbox_operationcanceledbyuser_txt = "Operation has been canceled."
self.conf2 = messagebox.askquestion(msgbox_eraserammap_title, msgbox_eraserammap_content)
if self.conf2 == "yes":
self.RAMMAPpath_var = GetConfig['ProgConfig']['RAMMapPath']
if self.RAMMAPpath_var == '$DEFAULT':
messagebox.showinfo(msgbox_confirm_defaultpath_title, msgbox_confirm_defaultpath_txt)
self.process = subprocess.getoutput(r'"%systemdrive%\RAMMap\RAMMap.exe" -Ew')
self.output_show.insert(END, f"\n {self.process}")
messagebox.showinfo(msgbox_eraserammap_title, msgbox_commandsent_txt)
else:
self.process = subprocess.getoutput(rf'""{self.RAMMAPpath_var}"\RAMMap.exe" -Ew')
self.output_show.insert(END, f"\n {self.process}")
messagebox.showinfo(msgbox_eraserammap_title, msgbox_commandsent_txt)
else:
messagebox.showinfo(msgbox_eraserammap_title, msgbox_operationcanceledbyuser_txt)
self.selection35 = self.var33.get()
if self.selection35 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%\\Google\\Chrome\\User Data\\Default"&del /s /q "Extension Cookies"&del /s /q "Extension Cookies-journal"')
self.output_show.insert(END, f"\n {self.process}")
self.selection36 = self.var34.get()
if self.selection36 == '1':
self.CDPCCPATH_var = GetConfig['ProgConfig']['CDPCCPATH']
if self.CDPCCPATH_var == '$DEFAULT':
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
you_didnt_specify_path_wacc_txt = "You didn't specify a custom location for the Windows activites cache cleaner to work on, Continuing using the Default values."
notification_2 = "Notification"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
you_didnt_specify_path_wacc_txt = "لم تقم بتعيين اي مسار مخصص لكي يستخدمه منظف الملفات المؤقتة الخاصة بنشاطات الويندوز،المتابعة بإستخدام القيم الإفتراضية"
notification_2 = "إشعار"
else:
you_didnt_specify_path_wacc_txt = "You didn't specify a custom location for the Windows activites cache cleaner to work on, Continuing using the Default values."
notification_2 = "Notification"
messagebox.showinfo(notification_2, you_didnt_specify_path_wacc_txt)
self.process = subprocess.getoutput(' cd /d "%localappdata%\\ConnectedDevicesPlatform"&erase /s /f /q "ee2999716b7783e6"')
self.output_show.insert(END, f"\n {self.process}")
else:
self.process = subprocess.getoutput(rf' cd /d "%localappdata%\\ConnectedDevicesPlatform"&erase /s /f /q "{self.CDPCCPATH_var}"')
self.output_show.insert(END, f"\n {self.process}")
self.selection37 = self.var35.get()
if self.selection37 == '1':
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
clr_iconcache_dialogtxt = "Cleaning IconCache.db file can not be done automatically, which means the user is premitted to do that manually, all what you have to do is just deleting the file iconcache.db in the directory we will open to you\nDo you wish to processed?"
clr_iconcache_dialogtitle = "Clean icon cache"
clr_iconcache_databasefile_done = "Done!"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
clr_iconcache_dialogtxt = "هل تود المتابعة؟ \n في المسار الذي سوف نقوم بفتحه لك IconCache.db لا يمكن ان يتم تلقائيا، لهذا السبب يجب عليك اتمامه بنفسك، كل ما عليك فعله هو مسح الملف IconCache.db مسح الملف"
clr_iconcache_dialogtitle = "محو ذاكرة التخزين المؤقتة للرموز"
clr_iconcache_databasefile_done = "تم!"
else:
clr_iconcache_dialogtxt = "Cleaning IconCache.db file can not be done automatically, which means the user is premitted to do that manually, all what you have to do is just deleting the file iconcache.db in the directory we will open to you\nDo you wish to processed?"
clr_iconcache_dialogtitle = "Clean icon cache"
clr_iconcache_databasefile_done = "Done!"
self.conf3 = messagebox.askquestion(clr_iconcache_dialogtitle, clr_iconcache_dialogtxt)
if self.conf3 == "yes":
self.process = subprocess.getoutput('%windir%\\explorer.exe "%localappdata%"')
self.output_show.insert(END, f"\n {self.process}")
messagebox.showinfo(clr_iconcache_dialogtitle, clr_iconcache_databasefile_done)
else:
pass
self.selection38 = self.var36.get()
if self.selection38 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%"&erase /s /f /q "Microvirt"')
self.output_show.insert(END, f"\n {self.process}")
self.selection39 = self.var37.get()
if self.selection39 == '1':
self.ADWCLRPATH_var = GetConfig['ProgConfig']['ADWCLRPath']
if self.ADWCLRPATH_var == '$DEFAULT':
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
notification_3 = "Notification"
nocustom_pathforadwclr_content = "You didn't specify a custom working location for the AdwareCleaner Cleaner, Continuing using the default path."
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
notification_3 = "إشعار"
custom_pathforadwclr_content = "سوف يستمر بإستخدام المسار الإفتراضي ، AdwareCleaner انت لم تقم بتحديد مسار مخصص لملفات البرنامج "
else:
notification_3 = "Notification"
custom_pathforadwclr_content = "You didn't specify a custom working location for the AdwareCleaner Cleaner, Continuing using the default path."
messagebox.showinfo(notification_3, custom_pathforadwclr_content)
self.process = subprocess.getoutput(' erase /s /f /q "%systemdrive%\\AdwCleaner\\Logs"')
self.output_show.insert(END, f"\n {self.process}")
else:
self.process = subprocess.getoutput(rf' erase /s /f /q "{self.ADWCLRPATH_var}\Logs"')
self.output_show.insert(END, f"\n {self.process}")
self.selection40 = self.var38.get()
if self.selection40 == '1':
self.process = subprocess.getoutput(' %systemdrive%&cd /d \\.\\&erase /s /f /q "PerfLogs"')
self.output_show.insert(END, f"\n {self.process}")
self.selection41 = self.var39.get()
if self.selection41 == '1':
self.process = subprocess.getoutput(' cd /d "%userprofile%"&rmdir /s /q ".cache"')
self.output_show.insert(END, f"\n {self.process}")
self.selection42 = self.var40.get()
if self.selection42 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%"&erase /s /f /q "SquirrelTemp"')
self.output_show.insert(END, f"\n {self.process}")
self.selection43 = self.var41.get()
if self.selection43 == '1':
self.process = subprocess.getoutput(' cd /d "%userprofile%\\AppData\\LocalLow"&erase /s /f /q "Temp"')
self.output_show.insert(END, f"\n {self.process}")
self.selection44 = self.var42.get()
if self.selection44 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%"&erase /s /f /q "ElevatedDiagnostics"')
self.output_show.insert(END, f"\n {self.process}")
self.selection45 = self.var43.get()
if self.selection45 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%\\VMware"&erase /s /f /q "vmware-download*"')
self.output_show.insert(END, f"\n {self.process}")
self.selection46 = self.var44.get()
if self.selection46 == '1':
self.process = subprocess.getoutput(' cd /d "%userprofile%\\appdata\\roaming\\balena-etcher"&erase /s /f /q "blob_storage"&erase /s /f /q "Code Cache"&erase /s /f /q "GPUCache"&erase /s /f /q "Local Storage"&erase /s /f /q "Session Storage"')
self.output_show.insert(END, f"\n {self.process}")
self.selection47 = self.var45.get()
if self.selection47 == '1':
self.process = subprocess.getoutput(' cd /d "%appdata%"&cd /d "%userprofile%\\AppData\\Roaming"&erase /s /f /q "pyinstaller"')
self.output_show.insert(END, f"\n {self.process}")
self.selection48 = self.var46.get()
if self.selection48 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%"&erase /s /f /q "Jedi"')
self.output_show.insert(END, f"\n {self.process}")
self.selection49 = self.var47.get()
if self.selection49 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%"&del /s /q "recently-used.xbel"')
self.output_show.insert(END, f"\n {self.process}")
self.selection50 = self.var48.get()
if self.selection50 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%"&del /s /q "llftool.*.agreement"')
self.output_show.insert(END, f"\n {self.process}")
self.selection51 = self.var49.get()
if self.selection51 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%"&erase /s /f /q "IdentityNexusIntegration"')
self.output_show.insert(END, f"\n {self.process}")
self.selection52 = self.var50.get()
if self.selection52 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%\\Axolot Games"&cd "Scrap Mechanic"&cd "Temp"&erase /s /f /q "WorkshopIcons"')
self.output_show.insert(END, f"\n {self.process}")
self.selection53 = self.var51.get()
if self.selection53 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%\\Roblox"&erase /s /f /q "logs"')
self.output_show.insert(END, f"\n {self.process}")
self.selection54 = self.var52.get()
if self.selection54 == '1':
self.process = subprocess.getoutput(' cd /d "%userprofile%\\AppData\\Roaming\\Code"&erase /s /f /q "GPUCache"&erase /s /f /q "Code Cache"&erase /s /f /q "CachedData"&erase /s /f /q "Cache"')
self.output_show.insert(END, f"\n {self.process}")
self.selection55 = self.var53.get()
if self.selection55 == '1':
self.process = subprocess.getoutput(' cd /d "%userprofile%\\AppData\\Roaming\\Code"&del /s /q "Cookies"&del /s /q "Cookies-journal"')
self.output_show.insert(END, f"\n {self.process}")
self.selection56 = self.var54.get()
if self.selection56 == '1':
self.process = subprocess.getoutput(' cd /d "%userprofile%\\AppData\\Roaming\\Code"&erase /s /f /q "CachedExtensions"&erase /s /f /q "CachedExtensionVSIXs"')
self.output_show.insert(END, f"\n {self.process}")
self.selection57 = self.var55.get()
if self.selection57 == '1':
self.WINXPEPATH_var = GetConfig['ProgConfig']['WINXPEPATH']
if self.WINXPEPATH_var == '$NONE':
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
error_title = "An ERROR has occured"
error_content_nopathforwinxpe = "You didn't specify the path of the 'WinXPE' program, The cleaner can't continue."
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
error_title = "لقد حدث خطأ بسيط"
error_content_nopathforwinxpe = "المنظف لا يستطيع الإستمرار ، 'WinXPE' انت لم تقم بوصف مسار تواجد برنامج "
else:
error_title = "An ERROR has occured"
error_content_nopathforwinxpe = "You didn't specify the path of the 'WinXPE' program, The cleaner can't continue."
messagebox.showinfo(error_title, error_content_nopathforwinxpe)
else:
self.process = subprocess.getoutput(rf' erase /s /f /q "{self.WINXPEPATH_var}\Temp"')
self.output_show.insert(END, f"\n {self.process}")
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
notify_title = "Note"
notify_content = "You will need to redownload all downloaded data by the tool for the exporting phase to be done!"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
notify_title = "ملحوظة"
notify_content = "يجب عليك إعادة تحميل كل الملفات المحملة بواسطة هذه الاداة لكي تكتمل مرحلة التصدير"
else:
notify_title = "Note"
notify_content = "You will need to redownload all downloaded data by the tool for the exporting phase to be done!"
messagebox.showinfo(notify_title, notify_content)
self.selection58 = self.var56.get()
if self.selection58 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%"&erase /s /f /q "ServiceHub"')
self.output_show.insert(END, f"\n {self.process}")
self.selection59 = self.var57.get()
if self.selection59 == '1':
self.process = subprocess.getoutput(' erase /s /f /q "%localappdata%\\HiSuite\\log"')
self.output_show.insert(END, f"\n {self.process}")
self.selection60 = self.var58.get()
if self.selection60 == '1':
self.process = subprocess.getoutput(' erase /s /f /q "%userprofile%\\AppData\\Roaming\\.minecraft\\webcache"')
self.output_show.insert(END, f"\n {self.process}")
self.selection61 = self.var59.get()
if self.selection61 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%\\Mozilla\\Firefox\\Profiles"&cd *.default-release&erase /s /f /q "cache2"&erase /s /f /q "jumpListCache"&cd /d "%userprofile%\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles"&cd *.default-release&erase /s /f /q "shader-cache"')
self.output_show.insert(END, f"\n {self.process}")
self.selection62 = self.var60.get()
if self.selection62 == '1':
self.process = subprocess.getoutput(' cd /d "%userprofile%\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles"&cd *.default-release&del /s /q "cookies.sqlite"')
self.output_show.insert(END, f"\n {self.process}")
self.selection63 = self.var61.get()
if self.selection63 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%\\VEGAS"&erase /s /f /q "ErrorReport"')
self.output_show.insert(END, f"\n {self.process}")
self.selection64 = self.var62.get()
if self.selection64 == '1':
self.process = subprocess.getoutput(' cd /d "%userprofile%\\AppData\\LocalLow\\Sun\\Java\\Deployment"&erase /s /f /q "tmp"')
self.output_show.insert(END, f"\n {self.process}")
self.selection65 = self.var63.get()
if self.selection65 == '1':
self.process = subprocess.getoutput(' cd /d "%localappdata%\\HiSuite\\userdata"&erase /s /f /q "DropTemp"')
self.output_show.insert(END, f"\n {self.process}")
self.selection66 = self.var64.get()
self.output_show.insert(END, "\n\n\n All pending operations has been completed!\n\n\n\nYou may press the 'F6' button in your keyboard to clear console.\n\n\n")
self.output_show.configure(state='disabled')
if self.selection66 == '1':
self.destroy()
# Sleeping a bit for longer (or equal) to 5 seconds.
time.sleep(1)
try:
# Ok, let's revert everything back to what it was before.
self.exec_btn.configure(text=self.begin_cleaning_btn_text, command=multiprocessing_execute_btn_function)
except TclError as tkerr:
pass
return None
def multiprocessing_execute_btn_function():
threading.Thread(target=execute_theprogram).start()
pass
# main_canvas.configure(background='black')
# main_frame.configure(background='black')
# self.show_frame.configure(background='black')
# Defining some informative labels inside of the Temp_Cleaner GUI's Window.
# self.banner = PhotoImage(file="banner.png")
# self.banner_show = Label(self.show_frame, image=self.banner, width=1200, height=300)
# self.banner_show.grid(column=0, row=1, sticky='w')
# Defining a sample get var functionaking a new checkbox.
# Defining the ON-OFF Like variable
self.var0 = StringVar()
self.var1 = StringVar()
self.var2 = StringVar()
self.var3 = StringVar()
self.var4 = StringVar()
self.var5 = StringVar()
self.var6 = StringVar()
self.var7 = StringVar()
self.var8 = StringVar()
self.var9 = StringVar()
self.var10 = StringVar()
self.var11 = StringVar()
self.var12 = StringVar()
self.var13 = StringVar()
self.var14 = StringVar()
self.var15 = StringVar()
self.var16 = StringVar()
self.var17 = StringVar()
self.var18 = StringVar()
self.var19 = StringVar()
self.var20 = StringVar()
self.var21 = StringVar()
self.var22 = StringVar()
self.var23 = StringVar()
self.var24 = StringVar()
self.var25 = StringVar()
self.var26 = StringVar()
self.var27 = StringVar()
self.var28 = StringVar()
self.var29 = StringVar()
self.var30 = StringVar()
self.var31 = StringVar()
self.var32 = StringVar()
self.var33 = StringVar()
self.var34 = StringVar()
self.var35 = StringVar()
self.var36 = StringVar()
self.var37 = StringVar()
self.var38 = StringVar()
self.var39 = StringVar()
self.var40 = StringVar()
self.var41 = StringVar()
self.var42 = StringVar()
self.var43 = StringVar()
self.var44 = StringVar()
self.var45 = StringVar()
self.var46 = StringVar()
self.var47 = StringVar()
self.var48 = StringVar()
self.var49 = StringVar()
self.var50 = StringVar()
self.var51 = StringVar()
self.var52 = StringVar()
self.var53 = StringVar()
self.var54 = StringVar()
self.var55 = StringVar()
self.var56 = StringVar()
self.var57 = StringVar()
self.var58 = StringVar()
self.var59 = StringVar()
self.var60 = StringVar()
self.var61 = StringVar()
self.var62 = StringVar()
self.var63 = StringVar()
self.var64 = StringVar()
# Defining the checkbox button.
# setting the proper language pack for the program's UI.
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text0 = "Recycle Bin Cleanup"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text0 = "منظف سلة المهملات"
else:
text0 = "Recycle Bin Cleanup"
self.lblframe0 = ttk.Labelframe(self.show_frame, text=text0)
# --------------------------
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text1 = "Empty Systemdrive Recycle Bin"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text1 = "تنظيف سلة مهملات قرص النظام"
else:
text1 = "Empty Systemdrive Recycle Bin"
self.clr_recyclebin_sysdrive_btn = ttk.Checkbutton(self.lblframe0, text=text1, variable=self.var0, onvalue="1", offvalue="0", command=None)
self.clr_recyclebin_sysdrive_btn.grid(column=0, row=3, sticky='w')
# ---------------------------
self.lblframe0.grid(column=0, row=2, sticky='w')
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text2 = "DirectX Shader Cache Cleanup (Win 10/11 Only)"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text2 = "تنظيف ذاكرة التخزين المؤقتة الخاصة بDirectX Shader"
else:
text2 = "DirectX Shader Cache Cleanup (Win 10/11 Only)"
self.lblframe1 = ttk.Labelframe(self.show_frame, text=text2)
# ---------------------------
self.clr_d3dscache_localappdata_btn = ttk.Checkbutton(self.lblframe1, text=text2, variable=self.var2, onvalue="1", offvalue="0", command=None)
self.clr_d3dscache_localappdata_btn.grid(column=0, row=5, sticky='w')
# ---------------------------
self.lblframe1.grid(column=0, row=4, sticky='w')
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text3 = "System and User Specific Cleaners"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text3 = "منظف ملفات النظام الغير ضرورية وملفات المستخدم الخاصة الغير ضرورية"
else:
text3 = "System and User Specific Cleaners"
self.lblframe2 = ttk.Labelframe(self.show_frame, text=text3)
# ---------------------------
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text4 = "Clean PrefetchW Files"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text4 = "منظف ملفات برنامج PrefetchW"
else:
text4 = "Clean PrefetchW Files"
self.clr_prefetchw_windir_btn = ttk.Checkbutton(self.lblframe2, text=text4, variable=self.var1, onvalue="1", offvalue="0", command=None)
self.clr_prefetchw_windir_btn.grid(column=0, row=7, sticky='w')
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text5 = "Erase User Clipboard Content (Excluding Content you Copy and paste)"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text5 = "تفريغ محتوي الحافظة (لا يتضمن المحتوي الذي تنسخه وتلصقه)"
else:
text5 = "Erase User Clipboard Content (Excluding Content you Copy and paste)"
self.clr_usrclipboard_content_btn = ttk.Checkbutton(self.lblframe2, text=text5, variable=self.var9, onvalue="1", offvalue="0", command=None)
self.clr_usrclipboard_content_btn.grid(column=0, row=8, sticky='w')
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text6 = "Erase Windows Temporary Files"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text6 = "مسح الملفات المؤقتة الخاصة بنظام ويندوز الغير ضرورية"
else:
text6 = "Erase Windows Temporary Files"
self.clr_windir_temp_btn = ttk.Checkbutton(self.lblframe2, text=text6, variable=self.var3, onvalue="1", offvalue="0", command=None)
self.clr_windir_temp_btn.grid(column=0, row=9, sticky='w')
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text7 = "Erase User Temporary Files"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text7 = "مسح الملفات المؤقتة الخاصة بالمستخدم الغير ضرورية"
else:
text7 = "Erase User Temporary Files"
self.clr_localappdata_temp_btn = ttk.Checkbutton(self.lblframe2, text=text7, variable=self.var4, onvalue="1", offvalue="0", command=None)
self.clr_localappdata_temp_btn.grid(column=0, row=10, sticky='w')
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text8 = "Clean Default User Temporary Files"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text8 = "مسح الملفات المؤقتة الخاصة بالمستخدم الإفتراضي الغير ضرورية"
else:
text8 = "Clean Default User Temporary Files"
self.clr_default_usr_appdata_temp_btn = ttk.Checkbutton(self.lblframe2, text=text8, variable=self.var7, onvalue="1", offvalue="0", command=None)
self.clr_default_usr_appdata_temp_btn.grid(column=0, row=11, sticky='w')
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text9 = "Clean IE (Internet Explorer) Cached data"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text9 = "مسح ملفات متصفح مستكشف الإنترنت المؤقتة"
else:
text9 = "Clean IE (Internet Explorer) Cached data"
self.clr_inet_cached_data_btn = ttk.Checkbutton(self.lblframe2, text=text9, variable=self.var8, onvalue="1", offvalue="0", command=None)
self.clr_inet_cached_data_btn.grid(column=0, row=12, sticky='w')
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text10 = "Clean Windows Explorer Thumbnails Cached Data"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text10 = "مسح ملفات مستكشف الويندوز الخاصة بالصور المصغرة"
else:
text10 = "Clean Windows Explorer Thumbnails Cached Data"
self.clr_msexplorer_thumbcacheddata_btn = ttk.Checkbutton(self.lblframe2, text=text10, variable=self.var10, onvalue="1", offvalue="0", command=None)
self.clr_msexplorer_thumbcacheddata_btn.grid(column=0, row=13, sticky='w')
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text11 = "Clean User Recent Documents List"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text11 = "محو قائمة اخر ملفات تم فتحها"
else:
text11 = "Clean User Recent Documents List"
self.clr_winrecentdocs_list_btn = ttk.Checkbutton(self.lblframe2, text=text11, variable=self.var11, onvalue="1", offvalue="0", command=None)
self.clr_winrecentdocs_list_btn.grid(column=0, row=14, sticky='w')
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text12 = "Clean Local Low Temporary Files"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text12 = "محو ملفات التخزين المؤقتة الخاصة بالمستخدم Local Low"
else:
text12 = "Clean Local Low Temporary Files"
self.clr_locallow_temporary_data_btn = ttk.Checkbutton(self.lblframe2, text=text12, variable=self.var41, onvalue="1", offvalue="0", command=None)
self.clr_locallow_temporary_data_btn.grid(column=0, row=15, sticky='w')
# ---------------------------
self.lblframe2.grid(column=0, row=6, sticky='w')
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text13 = "Web Browser Cleaners"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text13 = "تنظيف متصفحات الإنترنت"
else:
text13 = "Web Browser Cleaners"
self.lblframe3 = ttk.Labelframe(self.show_frame, text=text13)
# ---------------------------
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text14 = "Clean Google Chrome Browser Webcached data (Incl. GPUCache, Code Cache)"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text14 = "تنظيف ملفات متصفح جوجل كروم المؤقتة (يتضمن ملفات وحدة معالجة الرسوميات المؤقتة وملفات التعليمات البرمجية)"
else:
text14 = "Clean Google Chrome Browser Webcached data (Incl. GPUCache, Code Cache)"
self.clr_gchrome_webcache_incl_gpucache_codecache_btn = ttk.Checkbutton(self.lblframe3, text=text14, variable=self.var5, onvalue="1", offvalue="0", command=None)
self.clr_gchrome_webcache_incl_gpucache_codecache_btn.grid(column=0, row=17, sticky='w')
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text15 = "Clean Google Chrome Browser Cookies (Incl. Cookies-journal)"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text15 = "تنظيف ملفات الكعكات الخاصة بمتصفح جوجل كروم"
else:
text15 = "Clean Google Chrome Browser Cookies (Incl. Cookies-journal)"
self.clr_gchrome_browser_cookies_btn = ttk.Checkbutton(self.lblframe3, text=text15, variable=self.var6, onvalue="1", offvalue="0", command=None)
self.clr_gchrome_browser_cookies_btn.grid(column=0, row=18, sticky='w')
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text16 = "Clean Google Chrome Browser Extension Cookie Data"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text16 = "تنظيف ملفات الكعكات الخاصة بالمكونات الإضافية الخاصة بمتصفح جوجل كروم"
else:
text16 = "Clean Google Chrome Browser Extension Cookie Data"
self.clr_gchrome_extension_cookies_data_btn = ttk.Checkbutton(self.lblframe3, text=text16, variable=self.var33, onvalue="1", offvalue="0", command=None)
self.clr_gchrome_extension_cookies_data_btn.grid(column=0, row=19, sticky='w')
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text17 = "Clean Steam Webclient HTML Cached data"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text17 = "تنظيف الملفات المؤقتة الخاصة ببرنامج Steam"
else:
text17 = "Clean Steam Webclient HTML Cached data"
self.clr_steam_webclient_htmlcache_btn = ttk.Checkbutton(self.lblframe3, text=text17, variable=self.var14, onvalue="1", offvalue="0", command=None)
self.clr_steam_webclient_htmlcache_btn.grid(column=0, row=20, sticky='w')
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text18 = "Clean Discord Webclient Webcached data"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text18 = "تنظيف الملفات المؤقتة الخاصة ببرنامج الديسكورد"
else:
text18 = "Clean Discord Webclient Webcached data"
self.clr_discordwebclient_webcacheddata_btn = ttk.Checkbutton(self.lblframe3, text=text18, variable=self.var12, onvalue="1", offvalue="0", command=None)
self.clr_discordwebclient_webcacheddata_btn.grid(column=0, row=21, sticky='w')
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text19 = "Clean Chromium-based Microsoft Edge Webcached data (Incl. GPUCache, Code cache)"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text19 = "(code cache المؤقتة و gpu يتضمن ملفات) تنظيف الملفات المؤقتة الخاصة بمتصفح ادجي المبني علي كروميم "
else:
text19 = "Clean Chromium-based Microsoft Edge Webcached data (Incl. GPUCache, Code cache)"
self.clr_chromiumbased_msedge_webcached_data_btn = ttk.Checkbutton(self.lblframe3, text=text19, variable=self.var24, onvalue="1", offvalue="0", command=None)
self.clr_chromiumbased_msedge_webcached_data_btn.grid(column=0, row=22, sticky='w')
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text20 = "Clean Chromium-based Microsoft Edge Cookie data (Incl. Cookies-journal)"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text20 = "محو الكعكات الخاصة بمتصفح ادجي المبني علي كروميم"
else:
text20 = "Clean Chromium-based Microsoft Edge Cookie data (Incl. Cookies-journal)"
self.clr_chormiumbased_msedge_cookies_data_btn = ttk.Checkbutton(self.lblframe3, text=text20, variable=self.var25, onvalue="1", offvalue="0", command=None)
self.clr_chormiumbased_msedge_cookies_data_btn.grid(column=0, row=23, sticky='w')
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text21 = "Clean Mozilla Firefox Webcached data (Incl. cache2, jumpListCache, and Shader Cache)"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text21 = "Mozilla Firefox محو الملفات المؤقتة الخاصة بمتصفح "
else:
text21 = "Clean Mozilla Firefox Webcached data (Incl. cache2, jumpListCache, and Shader Cache)"
self.clr_mozilla_firefox_webcached_data_btn = ttk.Checkbutton(self.lblframe3, text=text21, variable=self.var59, onvalue="1", offvalue="0", command=None)
self.clr_mozilla_firefox_webcached_data_btn.grid(column=0, row=24, sticky='w')
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text22 = "Clean Mozilla Firefox browser Cookie data (it is just a Sqlite file)"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text22 = "Mozilla Firefox محو الكعكات الخاصة بمتصفح "
else:
text22 = "Clean Mozilla Firefox browser Cookie data (it is just a Sqlite file)"
self.clr_mozilla_firefox_cookies_sqlite_file_btn = ttk.Checkbutton(self.lblframe3, text=text22, variable=self.var60, onvalue="1", offvalue="0", command=None)
self.clr_mozilla_firefox_cookies_sqlite_file_btn.grid(column=0, row=25, sticky='w')
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text23 = "Clean Discord Windows Client Squirrel Temp"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text23 = "الخاصة ببرنامج الديسكورد Squirrel Temp مسح ملفات"
else:
text23 = "Clean Discord Windows Client Squirrel Temp"
self.clr_discordapp_squirrel_temp_data_btn = ttk.Checkbutton(self.lblframe3, text=text23, variable=self.var40, onvalue="1", offvalue="0", command=None)
self.clr_discordapp_squirrel_temp_data_btn.grid(column=0, row=26, sticky='w')
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text24 = "Clean Internet Explorer Cookies Data"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text24 = "مسح الكعكات الخاصة بمتصفح مستكشف الإنترنت"
else:
text24 = "Clean Internet Explorer Cookies Data"
self.clr_inetcookies_btn = ttk.Checkbutton(self.lblframe3, text=text24, variable=self.var17, onvalue="1", offvalue="0", command=None)
self.clr_inetcookies_btn.grid(column=0, row=27, sticky='w')
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text25 = "Clean Internet Explorer Additional Cached Data"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text25 = "مسح الملفات المؤقتة الزائدة الخاصة بمتصفح مستكشف الإنترنت"
else:
text25 = "Clean Internet Explorer Additional Cached Data"
self.clr_additionalinet_cacheddata_btn = ttk.Checkbutton(self.lblframe3, text=text25, variable=self.var18, onvalue="1", offvalue="0", command=None)
self.clr_additionalinet_cacheddata_btn.grid(column=0, row=28, sticky='w')
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text26 = "Clean Internet Explorer Downloads History Data"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text26 = "محو سجل التنزيلات الخاصة بمتصفح مستكشف الإنترنت"
else:
text26 = "Clean Internet Explorer Downloads History Data"
self.clr_iedownload_history_data_btn = ttk.Checkbutton(self.lblframe3, text=text26, variable=self.var19, onvalue="1", offvalue="0", command=None)
self.clr_iedownload_history_data_btn.grid(column=0, row=29, sticky='w')
# ---------------------------
self.lblframe3.grid(column=0, row=16, sticky='w')
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':
text27 = "Photo Editors Cleanup"
elif str(GetConfig['ProgConfig']['languagesetting']) == 'ar':
text27 = "منظفات برامج تعديل الصور"
else:
text27 = "Photo Editors Cleanup"
self.lblframe4 = ttk.Labelframe(self.show_frame, text=text27)
# ---------------------------
if str(GetConfig['ProgConfig']['languagesetting']) == 'en':