Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Resizing Widgets 19/08/2020 J.Warr
- from guizero import *
- app = App()
- button = PushButton(app, text="Default Size")
- msg1 = Text(app, text="Resizing Widgets")
- input_box = TextBox(app, text="Type lines here", width="fill", height=5, multiline=True, scrollbar=True)
- mdg2 = Text(app, text="Resizing Buttons")
- button_sized = PushButton(app, text="New Size", width=20, height=5)
- msg3 = Text(app, text="Waffle")
- waffle = Waffle(app, width=5, height=5)
- waffle[2,2].color="red"
- button_sized.bg = "tomato"
- button.bg="cyan"
- app.display()
Advertisement
Add Comment
Please, Sign In to add comment