Almost useable
This commit is contained in:
+6
-9
@@ -14,14 +14,14 @@ RyzenADJI = ()
|
|||||||
USBdevices = ()
|
USBdevices = ()
|
||||||
TotalUSBpower = ()
|
TotalUSBpower = ()
|
||||||
TotalPower = ()
|
TotalPower = ()
|
||||||
Lang = (1)
|
lang = none
|
||||||
|
|
||||||
def lang():
|
def lang():
|
||||||
global Lang
|
global lang
|
||||||
os.system('cls')
|
os.system('cls')
|
||||||
print("Please select 1 of 2 languages, Bitte Wahalen sie 1 oder 2 Sprachen")
|
print("Please select 1 of 2 languages, Bitte Wahalen sie 1 oder 2 Sprachen")
|
||||||
print("1. English \n2. Deusche")
|
print("1. English \n2. Deusche")
|
||||||
Lang = input(">")
|
lang = input(">")
|
||||||
|
|
||||||
def start():
|
def start():
|
||||||
os.system('cls')
|
os.system('cls')
|
||||||
@@ -39,9 +39,6 @@ def start():
|
|||||||
configdisplay()
|
configdisplay()
|
||||||
input("Drücken Sie die Eingabetaste, um zum Menü zu gelangen")
|
input("Drücken Sie die Eingabetaste, um zum Menü zu gelangen")
|
||||||
Menu()
|
Menu()
|
||||||
else:
|
|
||||||
lang()
|
|
||||||
Menu()
|
|
||||||
except:
|
except:
|
||||||
print("This is first time setup, please wait...")
|
print("This is first time setup, please wait...")
|
||||||
time.sleep(0.5987654321)
|
time.sleep(0.5987654321)
|
||||||
@@ -66,7 +63,7 @@ def load():
|
|||||||
USBdevices = (data["USBdevices"])
|
USBdevices = (data["USBdevices"])
|
||||||
TotalUSBpower = (data["TotalUSBPower"])
|
TotalUSBpower = (data["TotalUSBPower"])
|
||||||
TotalPower = (data["TotalPower"])
|
TotalPower = (data["TotalPower"])
|
||||||
lang = data(data["Lang"])
|
lang = data(data["lang"])
|
||||||
|
|
||||||
def Menu():
|
def Menu():
|
||||||
if lang == "1":
|
if lang == "1":
|
||||||
@@ -144,7 +141,7 @@ def editor():
|
|||||||
"USBdevices": USBdevices,
|
"USBdevices": USBdevices,
|
||||||
"TotalUSBPower": TotalUSBpower,
|
"TotalUSBPower": TotalUSBpower,
|
||||||
"TotalPower": TotalPower,
|
"TotalPower": TotalPower,
|
||||||
"lang": Lang,
|
"lang": lang,
|
||||||
}
|
}
|
||||||
with open("Configuationtable.json", "w") as file:
|
with open("Configuationtable.json", "w") as file:
|
||||||
file.write(json.dumps(data))
|
file.write(json.dumps(data))
|
||||||
@@ -182,7 +179,7 @@ def editor():
|
|||||||
"USBdevices": USBdevices,
|
"USBdevices": USBdevices,
|
||||||
"TotalUSBPower": TotalUSBpower,
|
"TotalUSBPower": TotalUSBpower,
|
||||||
"TotalPower": TotalPower,
|
"TotalPower": TotalPower,
|
||||||
"lang": Lang,
|
"lang": lang,
|
||||||
}
|
}
|
||||||
with open("Configuationtable.json", "w") as file:
|
with open("Configuationtable.json", "w") as file:
|
||||||
file.write(json.dumps(data))
|
file.write(json.dumps(data))
|
||||||
|
|||||||
Reference in New Issue
Block a user