Advertisement
timber101

threeLovellyBoxes

Aug 7th, 2019
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.92 KB | None | 0 0
  1. # three boxes of differing size, one with button and buttongroup, one with a waffle and the last one with a button with an x
  2.  
  3.  
  4. from guizero import App, Box, PushButton, ButtonGroup, Waffle, Drawing
  5. app = App()
  6. boxl = Box(app, align="left", border=5)
  7. button = PushButton(boxl)
  8. buttgroup = ButtonGroup(boxl,options=["one","two","three"], horizontal = True)
  9.  
  10. boxr = Box(app, align = "right", width = 300, height = 300, border = 1)
  11. wfl_waffle = Waffle(boxr,height = 3, width = 3, dim = 20, pad = 5, color ='cyan')
  12.  
  13. boxb = Box(app, align = "bottom", width = "fill" , height = 50, border = 1)
  14. butt2 = PushButton(boxb, text="x")
  15. #drw_draw = Drawing(boxb)
  16. #drw_draw.circle(5, steps=9, color = "yellow")
  17.  
  18. app.display()
  19.  
  20. # from guizero import App, Box, PushButton
  21. # app = App()
  22. # box = Box(app, align="left", width="fill", border=2)
  23. # button = PushButton(box)
  24. # button1 = PushButton(box, text="another button")
  25. # app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement