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