istvanrefle

Untitled

Dec 25th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. from guizero import App, Box, PushButton, Text, TextBox
  2. app = App(height=300)
  3.  
  4. def click_button3():
  5. box3.bg="green"
  6.  
  7.  
  8. box1 = Box(app, align="top", width="fill", height=100, border=0)
  9. box1.bg="green"
  10. lbl1 = Text(box1, text="It is text of Green box!")
  11.  
  12.  
  13. box2 = Box(app, align="none", width="fill", height=100, border=0)
  14. box2.bg="red"
  15. textbox = TextBox (box2)
  16. textbox.bg="white"
  17. textbox.color="balck"
  18.  
  19. box3 = Box(app, align="none", width="fill", height=100, border=0)
  20. box3.bg="blue"
  21. button3 = PushButton(box3, text="Done", command=click_button3)
  22.  
  23. app.display()# Write your code here :-)
Advertisement
Add Comment
Please, Sign In to add comment