Advertisement
davidhellam

Python: Simple Flashcard

Aug 10th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. from guizero import App, Text, PushButton
  2.  
  3. def reveal():
  4.     b_reveal.hide()
  5.     t_message1.text_color = "white"
  6.     t_message2.show()
  7.  
  8.  
  9. app = App(title='Simple Flashcard App', bg="blue", width=240, height=160)
  10. app.text_color="yellow"
  11. t_message1 = Text(app, text="GUI stands for")
  12. t_message1.text_color = "yellow"
  13. b_reveal = PushButton(app, command = reveal, text='Reveal answer')
  14. t_message2 = Text(app, text="Graphical User Interface")
  15. t_message2.text_color = "yellow"
  16. t_message2.hide()
  17. app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement