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 a third new message in this gui")
- firstmessage.text_size = 40
- secondmessage.bg = "green"
- thirdmessage.text_size = 20
- thirdmessage.bg = "red"
- app.display()
Advertisement
Add Comment
Please, Sign In to add comment