crzcas

resizing widgets

Mar 7th, 2021
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. from guizero import App, PushButton
  2. app = App()
  3.  
  4. button = PushButton(app, height=10, width=20)
  5. button_sized = PushButton(app, width="fill", height="fill")
  6. button_sized.bg = "green"
  7. button2 = PushButton(app, height=1, width=5)
  8. button2.bg = "blue"
  9. button3 = PushButton(app, height=5, width="fill")
  10. button3.bg = "yellow"
  11.  
  12. app.display()
Advertisement
Add Comment
Please, Sign In to add comment