Modifying Entry widget diabledforeground in Tkinter...

Rod Stephenson viking_kiwi at yahoo.poofters.com
Thu Mar 4 15:02:07 EST 2004


I want to modify an Entry widget to have the disabledforeground color
be black rather than grey (so that in certain circumstances the widget
acts as a label for displaying some stuff; the normal gray disabled
foreground color isnt really readable).

In Tk this is just a matter of using configure -disabledforeground
but this seems not to be an option with Tkinter. Reading through the
source there is a tk_setPallete which seems to do this globally, but
is there any way to do this locally for the widget?

tia



-- 
Bruce rule 1. 



More information about the Python-list mailing list