Python 1.2 & Tkinter menubuttons

Glenn Andreas (andreas@gateway.sctc.com)
12 Apr 1995 18:57:02 -0500

After playing with Python 1.2 I noticed that the Tkinter menubuttons
no longer work, and if you select them with middle button an error
is generated. After some delving, I found a work-around (don't know
what else this might break, or if it is optimal, so I'm calling it
a work-around, not a fix).

In Tkinter.py, line 6, change the value of CallableTypes to just
(FunctionType, MethodType) which was the values in the last version
of Tkinter.py. At the very least, InstanceType here causes menu instances
to be called to post when the middle button is clicked (and with no
__call__ method defined, this doesn't work).

There's probably a better solution, but this at least gets menus
popping up again....

Glenn Andreas
andreas@sctc.com