Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from guizero import Box, App, PushButton, TextBox, Text
- app = App()
- box_header = Box(app, align="top", border=1, width="fill", height=100)
- box_header.bg = "blue"
- box_footer = Box(app, align="bottom", border=0, width="fill", height=50)
- box_footer.bg = "light blue"
- lbl_header = Text(box_header, "Box as a header")
- lbl_header.text_color = "white"
- lbl_header.text_size = 24
- lbl_footer = Text(box_footer, "Box as a footer")
- lbl_footer.text_color = "brown"
- lbl_footer.text_size = 14
- app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement