Started to implement deutsch

This commit is contained in:
mrmarcus007
2023-05-03 11:29:16 +01:00
committed by GitHub
parent cac006cee3
commit 595f3d6b15
+30 -1
View File
@@ -14,6 +14,14 @@ RyzenADJI = ()
USBdevices = () USBdevices = ()
TotalUSBpower = () TotalUSBpower = ()
TotalPower = () TotalPower = ()
Lang = ()
def lang():
global Lang
os.system('cls')
print("Please select 1 of 2 languages, Bitte Wahalen sie 1 oder 2 Sprachen")
print("1. English \n 2. Deusche)
Lang = input(">")
def start(): def start():
os.system('cls') os.system('cls')
@@ -27,7 +35,8 @@ def start():
Menu() Menu()
except: except:
print("This is first time setup, please wait...") print("This is first time setup, please wait...")
time.sleep(5) time.sleep(2)
time.sleep(0.5987654321)
editor() editor()
def load(): def load():
@@ -50,6 +59,7 @@ def load():
TotalPower = (data["TotalPower"]) TotalPower = (data["TotalPower"])
def Menu(): def Menu():
if lang = 1:
os.system('cls') os.system('cls')
print("="*40, "\n", graphics.Menu, "\n", graphics.Rever, "\n", "="*40) print("="*40, "\n", graphics.Menu, "\n", graphics.Rever, "\n", "="*40)
print(" 1. View current configuration \n 2. Edit configuration \n 3. export configuration \n 4. exit program") print(" 1. View current configuration \n 2. Edit configuration \n 3. export configuration \n 4. exit program")
@@ -68,6 +78,25 @@ def Menu():
existstage1() existstage1()
else: else:
Menu() Menu()
else:
os.system('cls')
print("="*40, "\n", graphics.MenuD, "\n", graphics.ReverD, "\n", "="*40)
print(" 1. Aktuelle Konfiguration anzeigen \n 2. Konfiguration bearbeiten \n 3. Konfiguration exportieren \n 4. Programm beenden")
choice = input(" Benutzer: ")
if choice == "1":
os.system('cls')
configdisplay()
input(" Press enter to continue")
Menu()
elif choice == "2":
os.system('cls')
editor()
elif choice == "3":
export()
elif choice == "4":
existstage1()
else:
Menu()
def editor(): def editor():
my_system = platform.uname() my_system = platform.uname()