Advertisement
Guest User

Untitled

a guest
Mar 7th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. Password = StringVar()
  2. Username = StringVar()
  3. def EnterPassword():
  4. UsernameAttempt = Username.get()#how to get value from entry box
  5. PasswordAttempt = Password.get()#how to get value from entry box
  6.  
  7. if PasswordAttempt == '' and UsernameAttempt == '':
  8. self.delete()
  9. Landlord = LandlordMenu()
  10. else:
  11. PasswordError = messagebox.showerror('Password/Username Entry','Incorrect Username or Password entered.n Please try again.')
  12. 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