optimised code
This commit is contained in:
+7
-11
@@ -18,19 +18,16 @@ def Menu():
|
||||
os.system('cls')
|
||||
print(graphics.Menu)
|
||||
print(" 1. View current configuration \n 2. Edit configuration \n 3. exit program")
|
||||
a = input(" user: ")
|
||||
if a == "1":
|
||||
choice = input(" user: ")
|
||||
if choice == "1":
|
||||
os.system('cls')
|
||||
print(configdisplay(), "\n \n press any key to continue")
|
||||
B = input(" user:")
|
||||
if B == "":
|
||||
Menu()
|
||||
else:
|
||||
Menu()
|
||||
elif a == "2":
|
||||
print(configdisplay())
|
||||
input(" Press enter to continue")
|
||||
Menu()
|
||||
elif choice == "2":
|
||||
os.system('cls')
|
||||
editor()
|
||||
elif a == "3":
|
||||
elif choice == "3":
|
||||
existstage1()
|
||||
else:
|
||||
Menu()
|
||||
@@ -88,7 +85,6 @@ def configdisplay():
|
||||
print(" Total usb power", data["TotalUSBPower"])
|
||||
return graphics.Rever
|
||||
|
||||
|
||||
def existstage1():
|
||||
os.system('cls')
|
||||
print(graphics.Warning)
|
||||
|
||||
Binary file not shown.
+1
-1
@@ -3,7 +3,7 @@ import pyfiglet
|
||||
def ascii_art(text):
|
||||
return pyfiglet.figlet_format(text)
|
||||
|
||||
Rever = " \n Overclock Manager, Version: 1.2.15"
|
||||
Rever = " \n Overclock Manager, Version: 2.0.1"
|
||||
Overclock = ascii_art("Overclock Manager")
|
||||
Menu = ascii_art("Menu")
|
||||
Warning = ascii_art("Warning")
|
||||
|
||||
Reference in New Issue
Block a user