Tkinter.event.widget: handler gets name instead of widget.
Rick Johnson
rantingrickjohnson at gmail.com
Tue Jul 10 21:06:10 EDT 2012
More information about the Python-list mailing list
Tue Jul 10 21:06:10 EDT 2012
- Previous message (by thread): Tkinter.event.widget: handler gets name instead of widget.
- Next message (by thread): Tkinter.event.widget: handler gets name instead of widget.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Also: Q3: Why are you explicitly setting the name of your "subFrame" widgets instead of allowing Tkinter to assign a unique name?...AND are you aware of the conflicts that can arise from such changes[1]? Q4: Are you aware of the built-in function "enumerate"[2]? I see you are passing around indexes to iterables AND simultaneously needing the obj reference itself. I prefer to keep indexing to a minimum. If there is no bleeding edge performance issue to worry about (and there almost *always* never is) why not use enumerate? [1] http://www.pythonware.com/library/tkinter/introduction/x147-more-on-widget-names.htm [2] http://docs.python.org/release/3.0.1/library/functions.html#enumerate
- Previous message (by thread): Tkinter.event.widget: handler gets name instead of widget.
- Next message (by thread): Tkinter.event.widget: handler gets name instead of widget.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list