Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Import the GUI widgets that you'll be using, and create the 'app' for your program.
- from guizero import App, TextBox, PushButton, Text, info
- app = App()
- # Function definitions for your events go here.
- def btn_go_clicked():
- if txt_pwd1.value == txt_pwd2.value:
- message = "Passwords match"
- else:
- message = "Passwords do NOT match"
- info("Status",message)
- # Your GUI widgets go here
- lbl_password = Text(app, text="Enter password")
- txt_pwd1 = TextBox(app,hide_text=True)
- lbl_password2 = Text(app, text="Enter password")
- txt_pwd2 = TextBox(app,hide_text=True)
- btn_go = PushButton(app, command=btn_go_clicked, text="Done")
- # Show the GUI on the screen
- app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement