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 password1_name.value!=password2_name.value :
- {
- info("No Match","Password must be the same, try again" )
- }
- else :
- info ("look good", "Your password was set successfully. ")
- # Your GUI widgets go here
- lbl_name = Text(app, text="Hello.Please create a new password")
- lbl2_name =Text(app, text="Enter your new password")
- password1_name = TextBox(app)
- lbl3_name =Text(app, text="Enter your new password again")
- password2_name =TextBox(app)
- 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