Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from guizero import App, TextBox, PushButton, Text, info
- app = App()
- # Function definitions for your events go here
- def btn_check_clicked():
- if txt_name.value == txt2_name.value:
- info("Password", "Your passwords match")
- else:
- info("Password", "Your passwords do NOT match")
- # Your GUI widgets go here
- lbl_name = Text(app, text="please enter your password")
- txt_name = TextBox(app)
- lbl2_name = Text(app, text="please enter your password again")
- txt2_name = TextBox(app)
- btn_go = PushButton(app, command=btn_check_clicked, text="Done")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement