Advertisement
fnogal

Boxes test

Dec 11th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. # -------------------------------------------------------------------
  2. # Programming with GUIs Raspberry Pi Foundation
  3. # Section 2.3
  4. # Working with boxes
  5. # -------------------------------------------------------------------
  6. from guizero import App, Box, Text, ListBox, PushButton
  7.  
  8. app = App()
  9.  
  10. box = Box(app, width="fill", height = 120, border=2)
  11. button = PushButton(box)
  12. button1 = PushButton(box, text="another button")
  13.  
  14. box2 = Box(app, align="left", width=100, height = 120,border=1)
  15. text2 = Text(box2, text="Box 2")
  16.  
  17. box3 = Box(app, align="right", width=150,height = 120, border=1)
  18. list = ListBox(box3, items=["one","two","three"])
  19.  
  20. app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement