Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from guizero import App, Text
- app = App(title = "This is my first GUI")
- firstmessage = Text(app, text="guis are cool")
- secondmessage = Text(app, text="this is green")
- thirdmessage = Text(app, text="this is black and not green")
- firstmessage.text_size = 40
- firstmessage.text_color = [255,0,0]
- secondmessage.bg = [0,255,0]
- thirdmessage.font = "Times"
- app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement