Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from guizero import App, TextBox, PushButton, Text, info
- app = App()
- def btn_password_check_clicked():
- if txt_pass_1st.value == txt_pass_2nd.value :
- info("Congrats","Your both passwords are same")
- else :
- info("OOOppps","Your passwords are not same")
- lbl_pass_1st = Text(app, text="Enter your Password below ::: ")
- txt_pass_1st = TextBox(app)
- lbl_pass_2nd = Text(app, text="Enter your same password again ::: ")
- txt_pass_2nd = TextBox(app)
- btn_go = PushButton(app, command=btn_password_check_clicked, text="Show the message")
- app.display()
Add Comment
Please, Sign In to add comment