Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -------------------------------------------------------------------
- # Programming with GUIs Raspberry Pi Foundation
- # Section 2.3
- # Working with boxes
- # -------------------------------------------------------------------
- from guizero import App, Box, Text, ListBox, PushButton
- app = App()
- box = Box(app, width="fill", height = 120, border=2)
- button = PushButton(box)
- button1 = PushButton(box, text="another button")
- box2 = Box(app, align="left", width=100, height = 120,border=1)
- text2 = Text(box2, text="Box 2")
- box3 = Box(app, align="right", width=150,height = 120, border=1)
- list = ListBox(box3, items=["one","two","three"])
- app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement