Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from guizero import App, Box, PushButton,Text, TextBox
- app = App()
- title_box = Box(app, width="fill", align="top", border=5)
- title = Text(title_box, text="Email notification", align="left")
- box = Box(app, width="fill", align="top", border=True)
- box1 = Box(app, align="right", width=150, height=150)
- box2 = Box(app, align="bottom", width=150, height=200, border=10)
- box2.bg = "green"
- buttons_box = Box(app, width="fill", align="bottom", border=True)
- cancel = PushButton(buttons_box, text="Read", align="left")
- ok = PushButton(buttons_box, text="Dismiss", align="right")
- button = PushButton(box1)
- button1 = PushButton(box1, text="another button")
- button2 = PushButton(box2)
- buttons_box = PushButton(box3, text="another button")
- app.display()
Advertisement
Add Comment
Please, Sign In to add comment