Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from guizero import App, Text, PushButton
- def reveal():
- b_reveal.hide()
- t_message1.text_color = "white"
- t_message2.show()
- app = App(title='Simple Flashcard App', bg="blue", width=240, height=160)
- app.text_color="yellow"
- t_message1 = Text(app, text="GUI stands for")
- t_message1.text_color = "yellow"
- b_reveal = PushButton(app, command = reveal, text='Reveal answer')
- t_message2 = Text(app, text="Graphical User Interface")
- t_message2.text_color = "yellow"
- t_message2.hide()
- app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement