Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Import the GUI widgets
- from guizero import App, TextBox, PushButton, Text, info
- app = App()
- # Function definitions for your events go here.
- def btn_go_clicked():
- if txt_psw.value == txt_psw2.value :
- msg = "Passwords match"
- else :
- msg = "The passwords do not match"
- info("Password check", msg)
- # Your GUI widgets go here
- lbl_psw = Text(app, text="Password")
- txt_psw = TextBox(app)
- lbl_psw2 = Text(app, text="Re-enter password")
- txt_psw2 = TextBox(app)
- btn_go = PushButton(app, command=btn_go_clicked, text="Submit")
- # Show the GUI on the screen
- app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement