Tkinter, how to get a button's bg color

upftftip at gmail.com upftftip at gmail.com
Tue Apr 3 21:09:03 EDT 2007


I am new to Tkinter.  Following an example, I executed the following:

window = Tk()
b = Button(window)
b.configure(bg = '#FF00FF')
b.grid(row = 0, column = 0)

how can I later get the value of this button's background color?

Thanks.




More information about the Python-list mailing list