From b6f096b3b0ab5e075adb2dbb0f077306e75eb9e2 Mon Sep 17 00:00:00 2001 From: Milad Barooni Date: Wed, 22 Jan 2020 11:26:48 +0330 Subject: [PATCH] Waiting for seyed --- Main.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Main.py b/Main.py index 5c94703..84d10c6 100644 --- a/Main.py +++ b/Main.py @@ -22,7 +22,7 @@ def __init__(self, master): #Bring the window to the center of screen windowWidth = master.winfo_reqwidth() windowHeight = master.winfo_reqheight() - print("Width",windowWidth,"Height",windowHeight) + # print("Width",windowWidth,"Height",windowHeight) positionRight = int(master.winfo_screenwidth()/2 - windowWidth/2) positionDown = int(master.winfo_screenheight()/2 - windowHeight/2) # Positions the window in the center of the page. @@ -204,6 +204,7 @@ def profilePage(self): password_entry.pack() password_entry.insert(END, user_information[0][5]) # Change button + self.user_id = user_information[0][0] Button(self.profile,text="Change my information", height="2", width="30", command=partial(self.updateUserInformation, user_information[0][0], firstname_entry, lastname_entry, phone_number_entry, email_address_entry, password_entry)).pack() print (email_address_entry.get()) @@ -222,9 +223,10 @@ def profilePage(self): city_combo = Combobox(self.profile) city_combo['values']= (1, 2, 3, 4, 5, "Text") city_combo.pack() - cities =["Shiraz", "Tehran"] - for city in cities: - Label(self.profile, text=city).pack() + addresses = mydb.showAddress(self.user_id) + print (addresses) + for address in addresses: + Label(self.profile, text=address).pack()