crzcas

My first GUI

Feb 26th, 2021
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. from guizero import App, Text
  2.  
  3. app = App(title="This is my first GUI")
  4.  
  5. firstmessage = Text(app, text="guis are cool!")
  6. secondmessage = Text(app, text="this is green")
  7. thirdmessage = Text(app, text="this is a third new message in this gui")
  8.  
  9. firstmessage.text_size = 40
  10. secondmessage.bg = "green"
  11. thirdmessage.text_size = 20
  12. thirdmessage.bg = "red"
  13.  
  14. app.display()
Advertisement
Add Comment
Please, Sign In to add comment