scipiguy

FutureLearn GUIZero - Boxes

Nov 3rd, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. from guizero import App, Box, PushButton, Slider, ListBox
  2. app = App()
  3. box1 = Box(app, align="left", width=100, height=45, border=1)
  4. box2 = Box(app, align="left", width=150, height=60, border=2)
  5. box3 = Box(app, align="left", width=200, height=135, border=3)
  6. button1 = PushButton(box1)
  7. listb = ListBox(box2, height=50, width=50, items=["One", "Two", "Three"])
  8. slider = Slider(box3, start=1, end=10)
  9. app.display()
Add Comment
Please, Sign In to add comment