Advertisement
Mori007

Untitled

Feb 7th, 2021
579
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.53 KB | None | 0 0
  1. from guizero import App, Box, PushButton
  2.  
  3. app = App()
  4.  
  5. box = Box(app, align='right', width=200, height=200, border=2)
  6. box1 = Box(app, align='left', width=200, height=200,border=2)
  7. box2 = Box(app, align='top', width=150, height=400, border=2)
  8.  
  9.  
  10. box.bg = "red"
  11. box1.bg = "blue"
  12.  
  13. button = PushButton(box,)
  14. button1 = PushButton(box, text="another button")
  15. button2 = PushButton(box1)
  16. button3 = PushButton(box1, text="another button")
  17. button4 = PushButton(box2)
  18. button5 = PushButton(box2, text="another button")
  19.  
  20. app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement