Tkinter - Widget Colours

johngrayson at home.com johngrayson at home.com
Fri Mar 23 08:39:47 EST 2001


--- In python-list at y..., "O'Rourke Clodagh-corour01" <corour01 at m...>
wrote:

>
> I was wondering does anyone know how the bag/fag colours can be
changed after the widget is packed.


b = Button(...)
b.pack(...)

b.configure(background='red')
b.config(bg='blue')
b['bg'] = "#fea405"

   etc...

    John Grayson






More information about the Python-list mailing list