Skip to content

Commit 912e547

Browse files
AdWMGUI 1.5
1 parent 03806fd commit 912e547

File tree

5 files changed

+111
-22
lines changed

5 files changed

+111
-22
lines changed

AdWMFuncLib/ShutdownPC/shutdownpc.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from AdWMGUILang.lang import *
1111
from AdWMFuncLib.Systemrepair import *
1212
from AdWMFuncLib.Systemclean import *
13+
from PyAppDevKit.pyappdevkit import *
1314
import os
1415

1516
def ShutdownPC():
@@ -21,13 +22,13 @@ def ShutdownPC():
2122

2223
def all_operations_ShutdownPC():
2324
if messagebox.askyesno(adwmgui_txt_title, shutdownpc_askyesno_txt_title) == True:
24-
time.sleep(0.5)
25+
time(0.5)
2526
OpenCleanmgr()
26-
time.sleep(0.5)
27+
time(0.5)
2728
AdvancedCleanup()
28-
time.sleep(0.5)
29+
time(0.5)
2930
RepairSystem()
30-
time.sleep(0.5)
31+
time(0.5)
3132
ShutdownPC()
3233
else:
3334
print(shutdownpc_askyesno_cancel_txt_title)

AdWMFuncLib/Systemclean.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,27 @@
55
Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/AdWMGUI
66
A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/AdWMGUI """
77

8-
import os, time
8+
import os
99
from tkinter import *
1010
from tkinter import messagebox
1111
from AdWMGUILang.lang import *
12+
from PyAppDevKit.pyappdevkit import *
1213

1314
def OpenCleanmgr():
1415
os.system("cleanmgr.exe")
1516

1617
def AdvancedCleanup():
1718
if messagebox.askyesno(adwmgui_txt_title, show_msg_ask_title) == True:
1819
messagebox.showinfo(adv_cleanup_title, adv_clnp_txt_title)
19-
time.sleep(2)
20+
time(2)
2021
messagebox.showinfo(adv_cleanup_title, adv_cleanup_step_one_txt_title)
2122
os.system("DISM.exe /Online /Cleanup-Image /AnalyzeComponentStore")
22-
time.sleep(2)
23+
time(2)
2324
messagebox.showinfo(adv_cleanup_title, adv_cleanup_step_two_txt_title)
2425
os.system("DISM.exe /Online /Cleanup-Image /StartComponentCleanup")
25-
time.sleep(2)
26+
time(2)
2627
messagebox.showinfo(adv_cleanup_title, adv_clnp_done_title)
2728
else:
2829
os.system("DISM.exe /Online /Cleanup-Image /AnalyzeComponentStore")
29-
time.sleep(2)
30+
time(2)
3031
os.system("DISM.exe /Online /Cleanup-Image /StartComponentCleanup")

AdWMFuncLib/Systemrepair.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,34 @@
55
Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/AdWMGUI
66
A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/AdWMGUI """
77

8-
import os, time
8+
import os
99
from tkinter import *
1010
from tkinter import messagebox
1111
from AdWMGUILang.lang import *
12+
from PyAppDevKit.pyappdevkit import *
1213

1314
def RepairSystem():
1415
if messagebox.askyesno(adwmgui_txt_title, show_msg_ask_title) == True:
1516
messagebox.showinfo(repair_sys_title, repair_sys_txt_title)
16-
time.sleep(2)
17+
time(2)
1718
messagebox.showinfo(repair_sys_title, repair_sys_step_one_title)
1819
os.system("sfc /scannow")
19-
time.sleep(2)
20+
time(2)
2021
messagebox.showinfo(repair_sys_title, repair_sys_step_two_title)
2122
os.system("dism /Online /Cleanup-Image /CheckHealth")
22-
time.sleep(2)
23+
time(2)
2324
messagebox.showinfo(repair_sys_title, repair_sys_step_three_title)
2425
os.system("dism /Online /Cleanup-Image /ScanHealth")
25-
time.sleep(2)
26+
time(2)
2627
messagebox.showinfo(repair_sys_title, repair_sys_step_four_title)
2728
os.system("dism /Online /Cleanup-Image /RestoreHealth")
28-
time.sleep(2)
29+
time(2)
2930
messagebox.showinfo(repair_sys_title, repair_sys_done_title)
3031
else:
3132
os.system("sfc /scannow")
32-
time.sleep(2)
33+
time(2)
3334
os.system("dism /Online /Cleanup-Image /CheckHealth")
34-
time.sleep(2)
35+
time(2)
3536
os.system("dism /Online /Cleanup-Image /ScanHealth")
36-
time.sleep(2)
37+
time(2)
3738
os.system("dism /Online /Cleanup-Image /RestoreHealth")

AdWMGUILang/lang.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
all_operations_shutdownpc_title = "Do all operations and then shut down the computer"
1818
about_level_title = "Enter About Level (0, 1, 2, 3): "
1919
about_txt_title = "About"
20-
about_zero_level_title = "AdWMGUI (Advanced Windows Manager GUI) version: 1.4"
21-
about_one_level_title = "AdWMGUI (Advanced Windows Manager GUI) version: 1.4, version_type: Stable Version (for GUI and Program), licence: GPL2"
20+
about_zero_level_title = "AdWMGUI (Advanced Windows Manager GUI) version: 1.5"
21+
about_one_level_title = "AdWMGUI (Advanced Windows Manager GUI) version: 1.5, version_type: Untested version (for GUI and Program), licence: GPL2"
2222
about_txt_two_title = "About Licence"
2323
about_two_level_title = "AdWMGUI (Advanced Windows Manager GUI), Licence type: GPL, Licence Version: 2, Licence Name: GPL2"
2424
about_txt_three_title = "Manufacturer Information"
@@ -54,8 +54,8 @@
5454
all_operations_shutdownpc_title = "Tüm işlemleri yap ardından Bilgisayarı kapat"
5555
about_level_title = "Hakkımda seviyesi gir (0, 1, 2, 3): "
5656
about_txt_title = "Hakkımda"
57-
about_zero_level_title = "AdWMGUI (Gelişmiş Windows Yönetimi GUI) sürüm: 1.4"
58-
about_one_level_title = "AdWMGUI (Gelişmiş Windows Yönetimi GUI) sürüm: 1.4, sürüm tipi: Stabil sürüm (GUI ve Program için), Lisans: GPL2"
57+
about_zero_level_title = "AdWMGUI (Gelişmiş Windows Yönetimi GUI) sürüm: 1.5"
58+
about_one_level_title = "AdWMGUI (Gelişmiş Windows Yönetimi GUI) sürüm: 1.5, sürüm tipi: Test edilmemiş sürüm (GUI ve Program için), Lisans: GPL2"
5959
about_txt_two_title = "Lisans Hakkında"
6060
about_two_level_title = "AdWMGUI (Gelişmiş Windows Yönetimi GUI), Lisans Türü: GPL, Lisans sürümü: 2, Lisans adı: GPL2"
6161
about_txt_three_title = "Üretici Bilgisi"

PyAppDevKit/pyappdevkit.py

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
#!/usr/bin/python3
2+
""" Copyright© 2023-2025 LinuxUsersLinuxMint
3+
PyAppDevKit Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır.
4+
PyAppDevKit All Rights Reserved under the GPL(General Public License).
5+
Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/PyAppDevKit
6+
A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/PyAppDevKit"""
7+
8+
def time(number):
9+
while number > 0:
10+
number -= 1
11+
for _ in range(100000000):
12+
pass
13+
14+
def error_msg(error_dialog):
15+
print(error_dialog)
16+
17+
def exit_program_dialog_time(exit_dialog_msg,userTime):
18+
print(exit_dialog_msg)
19+
userTime = int(userTime)
20+
time(userTime)
21+
exit()
22+
23+
def exit_program_time(userTime):
24+
userTime = int(userTime)
25+
time(userTime)
26+
exit()
27+
28+
def exit_program_dialog(exit_dialog_msg):
29+
print(exit_dialog_msg)
30+
31+
""" Example Dialog (ExitSelectDialog): "Select the method to exit the program (0: Dialogue and Time entry, 1: Time entry only, 2: Dialogue entry only, 3: Normal exit (old style)): "
32+
Example Dialog (userTimeDialog): "After how many seconds should the program be closed?: "
33+
Example Dialog (exitDialog): "Exit program..."
34+
Example Dialog (errormsgDialog): "Invalid Command!" """
35+
36+
def all_exit(ExitSelectDialog,userTimeDialog,exitDialog,errormsgDialog):
37+
exit_select = int(input(ExitSelectDialog))
38+
exit_select = int(exit_select)
39+
if exit_select == 0:
40+
userTime = input(userTimeDialog)
41+
exit_program_dialog_time(exitDialog, userTime)
42+
elif exit_select == 1:
43+
userTime = input(userTimeDialog)
44+
exit_program_time(userTime)
45+
elif exit_select == 2:
46+
exit_program_dialog(exitDialog)
47+
elif exit_select == 3:
48+
exit()
49+
else:
50+
print(errormsgDialog)
51+
52+
def program_info(dialog_one,dialog_one_t,dialog_two,dialog_two_t,dialog_three,dialog_three_t,dialog_four,dialog_four_t,dialog_five,dialog_five_t,dialog_six,dialog_six_t,dialog_seven,dialog_seven_t,dialog_eigth,dialog_eight_t,dialog_nine,dialog_nine_t,dialog_ten,dialog_ten_t):
53+
print("{0} {1}". format(dialog_one,dialog_one_t))
54+
print("{0} {1}". format(dialog_two,dialog_two_t))
55+
print("{0} {1}". format(dialog_three,dialog_three_t))
56+
print("{0} {1}". format(dialog_four,dialog_four_t))
57+
print("{0} {1}". format(dialog_five,dialog_five_t))
58+
print("{0} {1}". format(dialog_six,dialog_six_t))
59+
print("{0} {1}". format(dialog_seven,dialog_seven_t))
60+
print("{0} {1}". format(dialog_eigth,dialog_eight_t))
61+
print("{0} {1}". format(dialog_nine,dialog_nine_t))
62+
print("{0} {1}". format(dialog_ten,dialog_ten_t))
63+
64+
def library_info(dialog_one,dialog_one_t,dialog_two,dialog_two_t,dialog_three,dialog_three_t,dialog_four,dialog_four_t,dialog_five,dialog_five_t,dialog_six,dialog_six_t,dialog_seven,dialog_seven_t,dialog_eigth,dialog_eight_t,dialog_nine,dialog_nine_t,dialog_ten,dialog_ten_t):
65+
print("{0} {1}". format(dialog_one,dialog_one_t))
66+
print("{0} {1}". format(dialog_two,dialog_two_t))
67+
print("{0} {1}". format(dialog_three,dialog_three_t))
68+
print("{0} {1}". format(dialog_four,dialog_four_t))
69+
print("{0} {1}". format(dialog_five,dialog_five_t))
70+
print("{0} {1}". format(dialog_six,dialog_six_t))
71+
print("{0} {1}". format(dialog_seven,dialog_seven_t))
72+
print("{0} {1}". format(dialog_eigth,dialog_eight_t))
73+
print("{0} {1}". format(dialog_nine,dialog_nine_t))
74+
print("{0} {1}". format(dialog_ten,dialog_ten_t))
75+
76+
def program_welcome_msg(welcome_msg,cfg,cfg_,appname,libname,websitelink):
77+
print(welcome_msg)
78+
if cfg == 1:
79+
print(websitelink)
80+
elif cfg == 0:
81+
if cfg_ == "lib":
82+
library_info("Library Name: ",libname,"","","","","","","","","","","","","","","","","","")
83+
elif cfg_ == "app":
84+
program_info("Program Name: ",appname,"","","","","","","","","","","","","","","","","","")
85+
else:
86+
error_msg("Invalid definition!")

0 commit comments

Comments
 (0)