Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from guizero import App, Text, Box
- # this time we have not set the layout to auto as it is default
- app = App(title="align")
- # boxes
- box1 = Box(app, align="top", width="fill", height="fill", border=1)
- # create a series of widgets each with a different alignment
- top_text = Text(box1, text="at the top", align="top")
- bottom_text = Text(box1, text="at the bottom", align="bottom")
- left_text = Text(app, text="to the left", align="left")
- left_text_1 = Text(app, text="to the left again", align="left")
- right_text = Text(app, text="to the right", align="right")
- app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement