JAWarr

Resizing Widgets

Aug 19th, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1. # Resizing Widgets 19/08/2020 J.Warr
  2.  
  3. from guizero import *
  4. app = App()
  5. button = PushButton(app, text="Default Size")
  6.  
  7. msg1 = Text(app, text="Resizing Widgets")
  8. input_box = TextBox(app, text="Type lines here", width="fill", height=5, multiline=True, scrollbar=True)
  9. mdg2 = Text(app, text="Resizing Buttons")
  10. button_sized = PushButton(app, text="New Size", width=20, height=5)
  11. msg3 = Text(app, text="Waffle")
  12. waffle = Waffle(app, width=5, height=5)
  13.  
  14. waffle[2,2].color="red"
  15. button_sized.bg = "tomato"
  16. button.bg="cyan"
  17. app.display()
  18.  
Advertisement
Add Comment
Please, Sign In to add comment