Advertisement
zhongnaomi

next gui test gui 6

Sep 10th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.61 KB | None | 0 0
  1. from guizero import App, Text,ButtonGroup,PushButton
  2. def do_nothing():
  3.     print("Button was pressed")
  4. app = App(title="Adult Placement Test for English Classes")
  5. questionmessage = Text(app, text="I ----- some friends for dinner last night.")
  6. questionmessage.text_size=16
  7. questionmessage.font = "Arial Black"
  8. choice = ButtonGroup(app, options=["A meet", "B meeted", "C was met","D met"], selected="D met")
  9. choice.text_size=15
  10. choice.font = font = "Arial"
  11.  
  12. nextbutton= PushButton(app,command=do_nothing)
  13. nextbutton.bg ="green"
  14. nextbutton.text = "Next"
  15.  
  16. timemessage =  Text(app, text="You have 20 minutes left")
  17. app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement