Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # three boxes of differing size, one with button and buttongroup, one with a waffle and the last one with a button with an x
- from guizero import App, Box, PushButton, ButtonGroup, Waffle, Drawing
- app = App()
- boxl = Box(app, align="left", border=5)
- button = PushButton(boxl)
- buttgroup = ButtonGroup(boxl,options=["one","two","three"], horizontal = True)
- boxr = Box(app, align = "right", width = 300, height = 300, border = 1)
- wfl_waffle = Waffle(boxr,height = 3, width = 3, dim = 20, pad = 5, color ='cyan')
- boxb = Box(app, align = "bottom", width = "fill" , height = 50, border = 1)
- butt2 = PushButton(boxb, text="x")
- #drw_draw = Drawing(boxb)
- #drw_draw.circle(5, steps=9, color = "yellow")
- app.display()
- # from guizero import App, Box, PushButton
- # app = App()
- # box = Box(app, align="left", width="fill", border=2)
- # button = PushButton(box)
- # button1 = PushButton(box, text="another button")
- # app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement