Skip to content

Commit 77885d4

Browse files
AdWMGUI 1.1
1 parent 5f7c302 commit 77885d4

File tree

5 files changed

+55
-54
lines changed

5 files changed

+55
-54
lines changed

AdWMFuncLib/About/about.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/python3
2+
""" Copyright© 2023-2024 LinuxUsersLinuxMint
3+
AdWMGUI Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır.
4+
AdWMGUI 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/LinuxUsersLinuxMint
6+
A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint """
7+
8+
from tkinter import *
9+
from _tkinter import TclError
10+
from tkinter import messagebox
11+
from tkinter import filedialog
12+
from tkinter import simpledialog
13+
from tkinter import Tk
14+
15+
def AboutMsgBox():
16+
aboutLevel = str(input('Enter About Level (0, 1, 2, 3): '))
17+
aboutLevel = int(aboutLevel)
18+
if aboutLevel == 0:
19+
messagebox.showinfo("About", "AdWMGUI (Advanced Windows Manager GUI) version: 1.1")
20+
elif aboutLevel == 1:
21+
messagebox.showinfo("About", "AdWMGUI (Advanced Windows Manager GUI) version: 1.1, version_type: Stable Version (for GUI and Program), licence: GPL2")
22+
elif aboutLevel == 2:
23+
messagebox.showinfo("About Licence", "AdWMGUI (Advanced Windows Manager GUI), Licence type: GPL, Licence Version: 2, Licence Name: GPL2")
24+
elif aboutLevel == 3:
25+
messagebox.showinfo("Manufacturer Information", "Program Manufacturer: LinuxUsersLinuxMint, Organization: LinuxUsersLinuxMint, Organization Website: https://linuxuserslinuxmint.github.io/")
26+
else:
27+
messagebox.showerror("Error", "Error: Unknown About Level")

AdWMFuncLib/Systemrepair.py

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,28 @@
1414
from tkinter import Tk
1515

1616
def RepairSystem():
17-
messagebox.showinfo("RepairSystem", "Repairing System...")
18-
time.sleep(2)
19-
messagebox.showinfo("RepairSystem", "Repair System 1/4... (sfc /scannow)")
20-
os.system("sfc /scannow")
21-
time.sleep(2)
22-
messagebox.showinfo("RepairSystem", "Repair System 2/4... (dism /Online /Cleanup-Image /CheckHealth)")
23-
os.system("dism /Online /Cleanup-Image /CheckHealth")
24-
time.sleep(2)
25-
messagebox.showinfo("RepairSystem", "Repair System 3/4... (dism /Online /Cleanup-Image /ScanHealth)")
26-
os.system("dism /Online /Cleanup-Image /ScanHealth")
27-
time.sleep(2)
28-
messagebox.showinfo("RepairSystem", "Repair System 4/4... (dism /Online /Cleanup-Image /RestoreHealth)")
29-
os.system("dism /Online /Cleanup-Image /RestoreHealth")
30-
time.sleep(2)
31-
messagebox.showinfo("RepairSystem", "Reapiring System done!")
17+
message_level = int(input('Enter Message Level (0, 1): '))
18+
if message_level == 1:
19+
messagebox.showinfo("RepairSystem", "Repairing System...")
20+
time.sleep(2)
21+
messagebox.showinfo("RepairSystem", "Repair System 1/4... (sfc /scannow)")
22+
os.system("sfc /scannow")
23+
time.sleep(2)
24+
messagebox.showinfo("RepairSystem", "Repair System 2/4... (dism /Online /Cleanup-Image /CheckHealth)")
25+
os.system("dism /Online /Cleanup-Image /CheckHealth")
26+
time.sleep(2)
27+
messagebox.showinfo("RepairSystem", "Repair System 3/4... (dism /Online /Cleanup-Image /ScanHealth)")
28+
os.system("dism /Online /Cleanup-Image /ScanHealth")
29+
time.sleep(2)
30+
messagebox.showinfo("RepairSystem", "Repair System 4/4... (dism /Online /Cleanup-Image /RestoreHealth)")
31+
os.system("dism /Online /Cleanup-Image /RestoreHealth")
32+
time.sleep(2)
33+
messagebox.showinfo("RepairSystem", "Reapiring System done!")
34+
elif message_level == 0:
35+
os.system("sfc /scannow")
36+
time.sleep(2)
37+
os.system("dism /Online /Cleanup-Image /CheckHealth")
38+
time.sleep(2)
39+
os.system("dism /Online /Cleanup-Image /ScanHealth")
40+
time.sleep(2)
41+
os.system("dism /Online /Cleanup-Image /RestoreHealth")

AdWMFuncLib/about_help/about.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

AdWMFuncLib/about_help/help.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

adwm.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,23 @@
77

88
import AdWMFuncLib.Systemclean
99
import AdWMFuncLib.Systemrepair
10-
import AdWMFuncLib.about_help.about
11-
import AdWMFuncLib.about_help.help
10+
import AdWMFuncLib.About.about
1211
from tkinter import *
1312
from _tkinter import TclError
1413
from tkinter import messagebox
1514
from tkinter import filedialog
1615
from tkinter import simpledialog
1716
from tkinter import Tk
18-
1917
window = Tk()
2018
window.title("AdWMGUI (Advanced Windows Manager GUI)")
21-
window.geometry("385x30")
19+
window.geometry("497x30")
2220
window.resizable(FALSE,FALSE)
2321
systemclean = Button(window, text="SystemClean", command=AdWMFuncLib.Systemclean.OpenCleanmgr)
2422
systemclean.pack(side=LEFT)
2523
advancedsystemclean = Button(window, text="DISM WinSxs Folder clean", command=AdWMFuncLib.Systemclean.AdvancedCleanup)
2624
advancedsystemclean.pack(side=LEFT)
2725
systemrepair = Button(window, text="SystemRepair", command=AdWMFuncLib.Systemrepair.RepairSystem)
2826
systemrepair.pack(side=LEFT)
29-
about = Button(window, text="About", command=AdWMFuncLib.about_help.about.AboutMsgBox)
27+
about = Button(window, text="About", command=AdWMFuncLib.About.about.AboutMsgBox)
3028
about.pack(side=LEFT)
31-
help = Button(window, text="Help", command=AdWMFuncLib.about_help.help.HelpMsgBox)
32-
help.pack(side=LEFT)
3329
window.mainloop()

0 commit comments

Comments
 (0)