Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from guizero import Box, App, PushButton, TextBox, Text
- app = App(height=450, width=300)
- box_header = Box(app, align="top", border=1, width="fill", height=100)
- box_header.bg = "dark blue"
- box_body = Box(app, align="top", border=0, width="fill", height=300)
- box_body.bg = "blue"
- box_footer = Box(app, align="bottom", border=0, width="fill", height=50)
- box_footer.bg = "light blue"
- lbl_header = Text(box_header, "HEADER")
- lbl_header.text_color = "white"
- lbl_header.text_size = 24
- lbl_body = Text(box_body, "This is starting to")
- lbl_body2 = Text(box_body, "feel a lot like")
- lbl_body3 = Text(box_body, "styling with CSS!")
- lbl_body.text_color = "#ffffff"
- lbl_body.text_size = 18
- lbl_body2.text_color = "#ffffff"
- lbl_body2.text_size = 18
- lbl_body3.text_color = "#ffffff"
- lbl_body3.text_size = 18
- lbl_footer = Text(box_footer, "FOOTER")
- lbl_footer.text_color = "black"
- lbl_footer.text_size = 14
- app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement