Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from guizero import App, Box, PushButton
- app = App()
- box = Box(app, align='right', width=200, height=200, border=2)
- box1 = Box(app, align='left', width=200, height=200,border=2)
- box2 = Box(app, align='top', width=150, height=400, border=2)
- box.bg = "red"
- box1.bg = "blue"
- button = PushButton(box,)
- button1 = PushButton(box, text="another button")
- button2 = PushButton(box1)
- button3 = PushButton(box1, text="another button")
- button4 = PushButton(box2)
- button5 = PushButton(box2, text="another button")
- app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement