Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Tk_greenbutton.py
- from Tkinter import *
- root = Tk()
- myContainer1 = Frame(root)
- myContainer1.pack()
- button1 = Button(myContainer1)
- button1["text"]= " Hello, World! "
- button1["background"] = "green"
- button1.pack()
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement