Unnamed Tkinter object reference?

Martin v. Loewis martin at v.loewis.de
Tue May 14 16:30:49 EDT 2002


Christopher Myers <chris.myers at ingenta.com> writes:

> I have an app where I'm building widgets on the fly, and they do not
> have names, so I can't refer to them to use their methods, but it would
> be useful to be able to get some sort of temporary handle for a widget
> to be able to get/set parameters for it.

Tkinter widgets always have names; it is available as w._name - the
"full name" (i.e. the command name) is available as w._w.

HTH,
Martin




More information about the Python-list mailing list