Set Button background by property name : Button : GUI Tk PYTHON examples


PYTHON examples » GUI Tk » Button »

 

Set Button background by property name


Set Button background by property name

from Tkinter import *

root = Tk()
 
myContainer1 = Frame(root)
myContainer1.pack()

button1 = Button(myContainer1)      
button1["text"]"Hello, World!"    
button1["background""green"     
button1.pack()                      

root.mainloop()
           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo GUI Tk
» Button