SHARE
TWEET

firstgui

indramsy Dec 8th, 2019 111 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from guizero import App, Text
  2.  
  3. app = App(title = "This is my first GUI")
  4.  
  5. firstmessage = Text(app, text="guis are cool")
  6. secondmessage = Text(app, text="this is green")
  7. thirdmessage = Text(app, text="this is black and not green")
  8.  
  9. firstmessage.text_size = 40
  10. firstmessage.text_color = [255,0,0]
  11. secondmessage.bg = [0,255,0]
  12. thirdmessage.font = "Times"
  13.  
  14. app.display()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top