Advertisement
indramsy

firstgui

Dec 8th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 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 black and not green")
  8.  
  9. firstmessage.text_size = 40
  10. firstmessage.text_color = [255,0,0]
  11. secondmessage.bg = [0,255,0]
  12. thirdmessage.font = "Times"
  13.  
  14. app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement