Mori007

myfirstgui

Jan 31st, 2021
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. from guizero import App, Text
  2.  
  3. app = App("This is my first GUI")
  4.  
  5. firstmessage = Text(app, text="GUI are cool!")
  6. secondmessage = Text(app, text="This is Green")
  7. thirdmessage = Text(app, text="I can do it")
  8.  
  9. firstmessage.text_color = "red"
  10. firstmessage.font = "Verdana"
  11. secondmessage.bg = "green"
  12. thirdmessage.font = "Impact"
  13.  
  14. app.display()
Advertisement
Add Comment
Please, Sign In to add comment