How to provide context sensative help.

Chuck Meyers chuck.meyers at lmco.com
Tue Aug 29 10:37:25 EDT 2000


But str(event.widget) just gives a number. For context sensative help you
want the python name.

Bernhard Herzog wrote:

> Chuck Meyers <chuck.meyers at lmco.com> writes:
>
> > I don't see how to do this in Python. event.widget doesn't give you the
> > unique widget name so you could not parse key words from the name.
>
> But event.widget gives you either the Python object associated with the
> widget or just the widget name as a string if there's no corresponding
> Python widget. In both cases str(widget) should give you the full Tk
> name of the widget.
>
> --
> Bernhard Herzog   | Sketch, a drawing program for Unix
> herzog at online.de  | http://sketch.sourceforge.net/




More information about the Python-list mailing list