Advertisement
xavicano

Untitled

Aug 18th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.66 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="left", width=125, height=190, border=4)
  9. button = PushButton(box1)
  10. button1.font = "Times New Roman"
  11.  
  12. button1 = PushButton(box1, text="another button")
  13.  
  14.  
  15. box2 = Box(box, align="right", width="fill", border=1)
  16. box2.bg="blue"
  17.  
  18. button = PushButton(box2)
  19. button1 = PushButton(box2, text="another button")
  20.  
  21. message2 = Text(box2, text="Choose a colour?")
  22. txt_colour = ButtonGroup(box1, options=["Red", "Green", "White"])
  23.  
  24. app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement