Advertisement
kingshuk2018

Untitled

Nov 19th, 2020
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 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. message3 = Text(app,text = "This is the 3rd message with Red text and Calibri Font")
  8.  
  9. firstmessage.text_size = 40
  10. secondmessage.bg="Green"
  11. message3.text_color = "Red"
  12. message3.font = "calibri"
  13.  
  14. app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement