Advertisement
here2share

# Tk_greenbutton.py

Jan 3rd, 2016
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. # Tk_greenbutton.py
  2.  
  3. from Tkinter import *
  4.        
  5. root = Tk()
  6. myContainer1 = Frame(root)
  7. myContainer1.pack()
  8.  
  9. button1 = Button(myContainer1)
  10. button1["text"]= " Hello, World! "    
  11. button1["background"] = "green"      
  12. button1.pack()                         
  13.  
  14. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement