Advertisement
zhongnaomi

quiz layout 1

Jan 4th, 2020
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. from guizero import App, Text, PushButton
  2. app = App(layout="grid")
  3. questionlbl_name =  Text (app, text="Where_________ he live?", grid=[0,0])
  4. answer_a_botton = PushButton(app, text="A is", grid=[0,1])
  5. answer_b_botton = PushButton(app, text="B was", grid=[0,2])
  6. answer_c_botton = PushButton(app, text="C do", grid=[0,3])
  7. answer_d_botton = PushButton(app, text="D does",grid=[0,4])
  8.  
  9. time_lbl_name =Text(app, text ="You have 1200 seconds left", grid = [0,5])
  10. app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement