Advertisement
Buzzbow

password

Aug 16th, 2019
871
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. from guizero import App, TextBox, PushButton, Text, info
  2.  
  3. app = App()
  4.  
  5. # Function definitions for your events go here
  6. def btn_check_clicked():
  7. if txt_name.value == txt2_name.value:
  8. info("Password", "Your passwords match")
  9. else:
  10. info("Password", "Your passwords do NOT match")
  11.  
  12.  
  13.  
  14. # Your GUI widgets go here
  15. lbl_name = Text(app, text="please enter your password")
  16. txt_name = TextBox(app)
  17. lbl2_name = Text(app, text="please enter your password again")
  18. txt2_name = TextBox(app)
  19. btn_go = PushButton(app, command=btn_check_clicked, text="Done")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement