Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Password = StringVar()
- Username = StringVar()
- def EnterPassword():
- UsernameAttempt = Username.get()#how to get value from entry box
- PasswordAttempt = Password.get()#how to get value from entry box
- if PasswordAttempt == '' and UsernameAttempt == '':
- self.delete()
- Landlord = LandlordMenu()
- else:
- PasswordError = messagebox.showerror('Password/Username Entry','Incorrect Username or Password entered.n Please try again.')
- PasswordButton = Button(self.GenericGui,text = 'Landlord Section',height = 3, width = 15, command = EnterPassword, font = ('TkDefaultFont',14),relief=RAISED).place(x=60,y=175)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement