Python 1.52/Tkinter/IDLE Problem

Jonathan Polley jwpolley at collins.rockwell.com
Sun Jun 27 16:43:11 EDT 1999


I have just finished building version 1.5.2 of the python interpreter
for Solaris 2.1 and have discovered a problem that I do not get with the
Windows version.  Let me first say that IDLE runs just fine, with one
exception, and that makes me think that my build of the interpreter went
correctly.  When I open a module in IDLE and use the right mouse button
to set a breakpoint, I get the following traceback in the "Python Shell"
window:

Exception in Tkinter callback
Traceback (innermost last):
  File "../../Lib/lib-tk/Tkinter.py", line 764, in __call__
    return apply(self.func, args)
  File "EditorWindow.py", line 217, in right_menu_event
    rmenu.tk_popup(event.x_root, event.y_root)
  File "../../Lib/lib-tk/Tkinter.py", line 1506, in tk_popup
    self.tk.call('tk_popup', self._w, x, y, entry)
TclError: invalid command name "tk_menuSetFocus(.3314608.text.3461936)"

The popup is displayed correctly but I get the above traceback when it
appears. If I have the debugger running, the line that I selected is
highlighted, so it looks as if the breakpoint was set properly (it
behaves the same way as python for Windows).

Any ideas as to what is happening????


Thanks for your assistance.

Jonathan Polley
jwpolley at collins.rockwell.com






More information about the Python-list mailing list