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_name.value) == (txt2_name.value):
- info("Match", "You can enter the site")
- else:
- info("Not match", "You cannot enter the site")
- # Your GUI widgets go here
- lbl_name = Text(app, text="Type your password")
- txt_name = TextBox(app)
- lbl2_name = Text(app, text="Type your password again")
- txt2_name = TextBox(app)
- btn_go = PushButton(app, command=btn_go_clicked, text="Done")
- # Show the GUI on the screen
- app.display()
Add Comment
Please, Sign In to add comment