How to provide context sensative help.

Bernhard Herzog herzog at online.de
Thu Aug 24 16:25:04 EDT 2000


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