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.

classification
Title: IDLE hangs when selecting "Edit with IDLE" from explorer
Type: Stage:
Components: IDLE Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: tim.peters Nosy List: kbk, tebeka, tim.peters
Priority: normal Keywords:

Created on 2003-07-27 09:32 by tebeka, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
python20.wse.patch kbk, 2003-07-29 05:10 Fix IDLE Right Click Edit
Messages (5)
msg17372 - (view) Author: Miki Tebeka (tebeka) * Date: 2003-07-27 09:32
IDLE editor window hangs when right clicking a file and
selecting "Edit with IDLE"

Steps to reproduce:
o Open IDLE
o Open explorer
o Right click on a .py file
o Choose "Edit with IDLE"

A new IDLE edit window opens but it is not responding.
The original (shell) IDLE window works fine.

If you do the above without opening an IDLE shell it
works fine.

My system is win2k on IBM T30 (LapTop).
msg17373 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2003-07-27 16:53
Logged In: YES 
user_id=31435

Assigned to Kurt.  On Win2K the steps above don't create a 
problem for me, but I get a frozen window if I repeat the last 
two steps.  The whole failing sequence for me on a Win2K 
desktop box:

o Open IDLE
o Right click on a .py file
o Choose "Edit with IDLE"
o Right click on another .py file
o Choose "Edit with IDLE"

On Win98SE, the first "Edit with IDLE" works fine.  The 
second "Edit with IDLE" opens a new shell window but not a 
window for the selected .py file.  Third and subsequent "Edit 
with IDLE" steps have no visible effect (neither a new shell 
nor a new edit window open).

Something is left in a hosed state then:  if I close all the open 
IDLE windows, and try "Edit with IDLE" again, nothing visible 
happens.  The Win98SE task manager (Ctrl+Alt+Del) doesn't 
show any Python processes running at that point, and neither 
does WinTop.  It's still possible to start another IDLE, though.
msg17374 - (view) Author: Miki Tebeka (tebeka) * Date: 2003-07-28 07:10
Logged In: YES 
user_id=358087

When I change idle.pyw from

from idlelib.PyShell import main

to

import idlelib.PyShell
idlelib.PyShell.main()

I get a responsive IDLE edit window + a new shell window.
msg17375 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2003-07-29 05:10
Logged In: YES 
user_id=149084

Sorry, I should have used the -n switch the first time.
Hopefully this can be 2.3.

Currently on Windows IDLE can partially start multiple
instances under conditions still not fully understood.  The
comment by tebeka is interesting but not a universal
fix, I believe.

If IDLE is configured to open a shell (the default) it will
exhibit this behaviour.  If configured to open an edit
window at startup, it won't.  

The -n switch causes IDLE to not use the subprocess,
so it acts like the old IDLE and mutliple copies are not
a problem.

I'm increasingly inclined to think that the -e switch should
act like an "editor window on startup" configuration, since
opening multiple shells is ugly when configured to "open
shell on startup."

Eventually it will be possible to run multiple IDLE instances,
each with its own subprocess, but that's 2.4.
msg17376 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2003-07-29 17:25
Logged In: YES 
user_id=31435

Yup, this just snuck in for 2.3 final.  Thanks!

Misc/NEWS; new revision: 1.830
PCbuild/python20.wse; new revision: 1.133
History
Date User Action Args
2022-04-10 16:10:15adminsetgithub: 38941
2003-07-27 09:32:00tebekacreate