Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from guizero import App, TextBox, Text, PushButton, info
- app = App()
- # Function GUI
- def btn_click1():
- info("Greeting..", "Your name is, " + txt_name.value + "and ", " Youlike, " + txt_animal.value + " Nice ")
- #def btn_click2():
- lbl_name = Text(app, text="Howdy.. What's your name?")
- txt_name = TextBox(app)
- lbl_animal = Text(app, text="What's animal do you like?")
- txt_animal = TextBox(app)
- btn_go = PushButton(app, command=btn_click1, text="Done")
- app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement