Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from guizero import App, Box, PushButton,Text
- app = App()
- box1 = Box(app, align="top", width="fill", border=4)
- box2 = Box(app, align="bottom", width="fill", border=4)
- box3 = Box(app, align="left", width="fill", border=6)
- box4 = Box(app, align="right", width="fill", border=6)
- message1 = Text(box1, text="This is box 1")
- button1 = PushButton(box1, text="1st button")
- button2 = PushButton(box1, text="2nd button")
- message2 = Text(box2, text="This is box 2")
- button3 = PushButton(box2, text="3rd button")
- button4 = PushButton(box2, text="4th button")
- message3 = Text(box3, text="This is box 3")
- button5 = PushButton(box3, text="5th button")
- button6 = PushButton(box3, text="6th button")
- message4 = Text(box4, text="This is box 4")
- button7 = PushButton(box4, text="7th button")
- button8 = PushButton(box4, text="8th button")
- app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement