Re: tkinter, option_add, entry field trouble

2005-06-05 Thread jepler
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


pgpGoaYJ6P0vY.pgp
Description: PGP signature
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: tkinter, option_add, entry field trouble

2005-06-05 Thread Bob Greschke
Yahoo!  That was it.  When is Grayson coming out with a new version of 
Python and Tkinter Programming?  Mine is getting pretty full of pen  ink 
changes. :)

Nice tip, too!

Thanks!

[EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]

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


-- 
http://mail.python.org/mailman/listinfo/python-list