Tk's default Toplevel - counterintuitive

bowman bowman at montana.com
Sat Aug 21 05:47:48 CEST 1999


Guido van Rossum wrote:
>
> Good idea.  I've thought of this before, and somehow never got to it.
> I can't see any reason not to do it;

Speaking of counterintuitive and why not?, 

entrycget(index, 'menu')

returns the Tk string name of the menu, requiring a call to
nametowidget() before one can actually do something like

someMenu['bg'] = 'red'

Not a big deal, but it is rather unexpected to put a menu instance in
with entryconfigure() and get back something like '.8125431.8121234' .  

-- 
Bear Technology  Making Montana safe for Grizzlies

http://people.montana.com/~bowman/




More information about the Python-list mailing list