468,765 Members | 1,278 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,765 developers. It's quick & easy.

working on multiple files in IDLE

So say I am working on two separate .py files in IDLE that are part of the
same program. Does anyone have problems where when you modify one file, and
then run the other, the changes you made in the first aren't updated?

I usually just close all the files, and restart IDLE, but this is a pain.
Maybe because I always use right click -> edit with IDLE (on Windows). That
starts up a separate Python Shell too, which I always close.

MB
Jul 18 '05 #1
1 4290
"Moosebumps" <cr**@crud.com> wrote in message news:<ce***************@newssvr29.news.prodigy.com >...
So say I am working on two separate .py files in IDLE that are part of the
same program. Does anyone have problems where when you modify one file, and
then run the other, the changes you made in the first aren't updated?

I usually just close all the files, and restart IDLE, but this is a pain.
Maybe because I always use right click -> edit with IDLE (on Windows). That
starts up a separate Python Shell too, which I always close.

MB


The latest version of IDLE was *supposed* to fix this by restarting
the IDLE session when you run the script.
Unfortunately they didn't get it working on the windows version
because it uses the same socket when you run multiple
versions......... The result is that IDLE is virtually unuseable for
serious work on windows... :-(

There *is* a way round it...... If you edit your file association for
..py and .pyw files (from an explorer window menu select tools and
folder options - then choose file types). Remove the -n from the
command line that IDLE is launched with.. this allows IDLE to be
launched with a subprocess... *HOWEVER* if you do this you can only
open one version of IDLE at a time the second and third
modules/scripts that you edit must be opened using the 'open' or 'open
module' option..... If a second shell window opens it will
hang.........

I have two file associations - one 'Edit with IDLE Subprocess' and one
'Edit with IDLE No Subprocess'... the two co-exist quite happily even
when run simultaneously...........
For files edited on IDLE *with* a subprocess - it will restart the
session whenever you run the script...... which re-imports all the
modules and therefore includes your changes..... bit of a bodge
though....

Fuzzy
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Florian Wellner | last post: by
reply views Thread by Fuzzyman | last post: by
3 posts views Thread by Jay O'Connor | last post: by
reply views Thread by Matthias Sommer | last post: by
reply views Thread by brianrpsgt1 | last post: by
reply views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.