This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gregc
Recipients gregc
Date 2008-04-25.23:36:25
SpamBayes Score 0.0003731474
Marked as misclassified No
Message-id <1209166587.6.0.537428901937.issue2693@psf.upfronthosting.co.za>
In-reply-to
Content
IDLE and Tk 8.5 don't well work together for both Python 2.5 and 2.6a
(SVN version).  The reasons are related but different.

In Python 2.5, you can't select any text in the IDLE window and whenever
a calltip is to appear, you get a backtrace ending with "invalid literal
for int() with base 10: '(72,'".  That comes from an interaction between
WidgetRedirector's dispatch function and _tkinter.  The Text widget's
bbox method returns a tuple of ints, the dispatch function isn't
monitoring bbox, so it returns the tuple as is to _tkinter, where
PythonCmd converts the tuple to a Python string, not a Tcl list, so when
Tkinter sees the string, it can't convert to a tuple.

The Python "2.6a2" SVN version of _tkinter fixes that bug but exposes
others (Ikinter.py, tupleobject.c), so I've attached a simple patch for
Python 2.5.  The SVN version of idle appears to work, so this patch
should only be on the 2.5 branch.
History
Date User Action Args
2008-04-25 23:36:27gregcsetspambayes_score: 0.000373147 -> 0.0003731474
recipients: + gregc
2008-04-25 23:36:27gregcsetspambayes_score: 0.000373147 -> 0.000373147
messageid: <1209166587.6.0.537428901937.issue2693@psf.upfronthosting.co.za>
2008-04-25 23:36:26gregclinkissue2693 messages
2008-04-25 23:36:26gregccreate