Advertisement
johnpentyrch

GUI 1p4

May 6th, 2020
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. from guizero import App, Text
  2. app = App(title="Hi there")
  3.  
  4. firstmessage = Text(app, text="This is big text")
  5. secondmessage = Text(app, text="This is green", color= "yellow")
  6. thirdmessage = Text(app, text="This is third", color='#ccffc9', font='Albertus MT')
  7.  
  8. firstmessage.text_size = 40
  9. secondmessage.bg = "green"
  10. secondmessage.color= "red"
  11. thirdmessage.text_size = 30
  12. thirdmessage.bg="#cc3380"
  13.  
  14. app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement