TKinter Event Name??

Matthias Barmeier barmeier at barmeier.com
Fri Mar 17 03:16:14 EST 2000


On Wed, 15 Mar 2000 15:42:13 GMT, "Fredrik Lundh" <effbot at telia.com>
wrote:

>Matthias Barmeier wrote:
>> does anybody know how to retrieve the event name
>> in an event callback ?
>
>event.type contains a numeric code (passed to the
>callback as a string).  the attached dictionary maps
>back from int(event.type) to the event name.

Thanx!

But what happens to MenuBindings ?
Is there a possibility to get the event name that
was bound to this event ?






More information about the Python-list mailing list