Exiting Tkinter when using IDLE

Kurt B. Kaiser kbk at shore.net
Sat Mar 13 08:16:57 CET 2004


Jason Harper <JasonHarper at pobox.com> writes:

> Here's a little inconsistency that had me really confused for a
> while: IDLE, when run from the Start menu (Win2K Pro, Python 2.3.3),
> uses a subprocess.  IDLE, when run via "Open in IDLE" in a .py*
> file's right-click menu, does NOT use a subprocess.  I haven't
> tracked down just where this difference is coming from.

Right now, we only allow one copy of the IDLE subprocess, because the
socket port is hard coded.  The specification of the -n switch is in
the Windows Explorer File Types assignment.  We did that deliberately
because people often click on several .py files to view them and that
tried to start several copies of IDLE + subprocess, which failed.

You can have as many copies of IDLE without the subprocess as you
like, but they aren't nearly as useful for code development.

The plan is to remove the hard coding of the port so several copies of
IDLE + subprocess can run simultaneously.  I am delaying that until I'm
pretty sure that the subprocess is well behaved under all conditions.

-- 
KBK



More information about the Python-list mailing list