Advertisement
xavicano

Untitled

Aug 18th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.58 KB | None | 0 0
  1. from guizero import App, Text, Box
  2.  
  3. # this time we have not set the layout to auto as it is default
  4. app = App(title="align")
  5.  
  6. # boxes
  7. box1 = Box(app, align="top", width="fill", height="fill", border=1)
  8.  
  9. # create a series of widgets each with a different alignment
  10. top_text = Text(box1, text="at the top", align="top")
  11. bottom_text = Text(box1, text="at the bottom", align="bottom")
  12. left_text = Text(app, text="to the left", align="left")
  13. left_text_1 = Text(app, text="to the left again", align="left")
  14. right_text = Text(app, text="to the right", align="right")
  15.  
  16. app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement