kingshuk2018

Untitled

Nov 19th, 2020
31
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. app = App()
  3.  
  4. def btn_password_check_clicked():
  5. if txt_pass_1st.value == txt_pass_2nd.value :
  6. info("Congrats","Your both passwords are same")
  7. else :
  8. info("OOOppps","Your passwords are not same")
  9.  
  10. lbl_pass_1st = Text(app, text="Enter your Password below ::: ")
  11. txt_pass_1st = TextBox(app)
  12.  
  13. lbl_pass_2nd = Text(app, text="Enter your same password again ::: ")
  14. txt_pass_2nd = TextBox(app)
  15. btn_go = PushButton(app, command=btn_password_check_clicked, text="Show the message")
  16.  
  17. app.display()
Add Comment
Please, Sign In to add comment