Account information added to account window.

This commit is contained in:
Lucas Mathews
2024-05-28 11:44:38 +02:00
parent 7b6ebbd0d2
commit 507c142398
3 changed files with 34 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ frame = None
def go_to_login():
"""Closes the current window and opens the login page."""
root.destroy()
login_page() # Replace with your function or class that opens the login page
os.system("python application/login.py")
def logout():
"""Logs out the client and redirects to the login page."""
@@ -97,7 +97,6 @@ def save_details():
new_email = email_entry.get() if email_entry.get() != '' else None
new_phone = phone_entry.get() if phone_entry.get() != '' else None
new_address = address_entry.get() if address_entry.get() != '' else None
try:
with open('application\\session_data.json', 'r') as f:
session_data = json.load(f)