tkinter, option_add, entry field trouble

jepler at unpythonic.net jepler at unpythonic.net
Sun Jun 5 15:13:44 EDT 2005


I think you have to spell it
	Root.option_add("*Entry*highlightThickness", "2")
	Root.option_add("*Entry*highlightColor", "green")

When you're not sure of the capitalization, do something like this
interactively:
	>>> e.configure('highlightcolor')
	('highlightcolor', 'highlightColor', 'HighlightColor',
		'SystemWindowFrame', 'green')
When you use 'configure' this way, the *second* string has the correct
capitalization for use in option_add.  The fourth is the system default before
taking into account the option database, and the last is the current value.

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050605/406b13be/attachment.sig>


More information about the Python-list mailing list