Advertisement
xavicano

Untitled

Aug 6th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.61 KB | None | 0 0
  1. from guizero import App, Box, PushButton, Text,ButtonGroup
  2. app = App()
  3.  
  4. box = Box(app, align="left", width="fill", border=2)
  5. button = PushButton(box)
  6. button1 = PushButton(box, text="another button")
  7.  
  8. box1 = Box(app, align="center", width=125, height=190, border=4)
  9. button = PushButton(box1)
  10. button1 = PushButton(box1, text="another button")
  11.  
  12.  
  13. box2 = Box(box, align="right", width="fill", border=1)
  14. button = PushButton(box2)
  15. button1 = PushButton(box2, text="another button")
  16.  
  17. message2 = Text(box2, text="Choose a colour?")
  18. txt_colour = ButtonGroup(box1, options=["Red", "Green", "White"])
  19.  
  20. app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement