crzcas

boxes

Mar 7th, 2021
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.75 KB | None | 0 0
  1. from guizero import App, Box, PushButton,Text, TextBox
  2.  
  3. app = App()
  4.  
  5. title_box = Box(app, width="fill", align="top", border=5)
  6. title = Text(title_box, text="Email notification", align="left")
  7. box = Box(app, width="fill", align="top", border=True)
  8.  
  9. box1 = Box(app, align="right", width=150, height=150)
  10. box2 = Box(app, align="bottom", width=150, height=200, border=10)
  11. box2.bg = "green"
  12.  
  13. buttons_box = Box(app, width="fill", align="bottom", border=True)
  14. cancel = PushButton(buttons_box, text="Read", align="left")
  15. ok = PushButton(buttons_box, text="Dismiss", align="right")
  16.  
  17. button = PushButton(box1)
  18. button1 = PushButton(box1, text="another button")
  19. button2 = PushButton(box2)
  20.  
  21. buttons_box = PushButton(box3, text="another button")
  22.  
  23. app.display()
Advertisement
Add Comment
Please, Sign In to add comment