Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from guizero import App, TextBox, PushButton, Text, info
- app = App()
- def btn_go_clicked():
- info("Greetings","Hello, Your Name is " + txt_name.value + " and you like "+ txt_animal.value )
- lbl_name = Text(app, text="Hello. What's your name?")
- txt_name = TextBox(app)
- lbl_animal = Text(app, text="Which animal do you like best?")
- txt_animal = TextBox(app)
- btn_go = PushButton(app, command=btn_go_clicked, text="Show the message")
- app.display()
Add Comment
Please, Sign In to add comment