Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Create an app that contains three boxes of different sizes. J.Warr 18/08/2020
- from guizero import *
- app = App()
- box1 = Box(app, align="top", width=150, height=50, border=2)
- box1.bg="green"
- box2 = Box(app, align="top", width=100, height=100, border=4)
- box2.bg="orange"
- box3 = Box(app, align="top", width=250, height=150, border=6)
- box3.bg="red"
- box3.text_size=18
- message1 = Text(box1, text="Button Box")
- button = PushButton(box2, text="Button")
- textbox1 = TextBox(box3, text="Text Box", hide_text=True)
- textbox2 = TextBox(box3, text="Text Box")
- textbox3 = TextBox(box3, text="Text Box")
- app.display()
Advertisement
Add Comment
Please, Sign In to add comment