Advertisement
zhongnaomi

pushbutton text gui 2

Sep 10th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. from guizero import App, Text ,PushButton
  2. def do_nothing():
  3.     print("Button was pressed")
  4. app = App(title="Adult Placement Test for English Classes")
  5. testtitle=  Text(app, text="Adult Placement Test for English Classes")
  6. testtitle.text_size=16
  7. testtitle.font = "Arial Black"
  8. startbutton= PushButton(app,command=do_nothing)
  9. startbutton.bg ="green"
  10. startbutton.text = "Start"
  11.  
  12. app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement