472,353 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

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 5090
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Florian Wellner | last post by:
Hi, I've got a Problem when I want to save a .py file in Idle. Most times it works, but sometimes I can't save my file. In the "Python Shell"...
2
by: Gary Feldman | last post by:
Since I prefer to keep all my installed programs in one place, I went ahead and installed Python in Program Files/Python. The command line shell...
0
by: Fuzzyman | last post by:
At least I've been advised by the 'officials' (in response to my bug report at sourceforge) to only start IDLE with the '-n' argument because...
3
by: Jay O'Connor | last post by:
I'm doing some Python CGI programming under Windows (Win95) but my CGIs need to run on Linux. If I try to write and save the files in IDLE, they...
1
by: JohnJohnUSA | last post by:
I am using Python IDLE 2.4.3 on Windows XP. I use File->New Window to create a new program. In the Save As dialog, it always takes me to the python...
6
by: tedpottel | last post by:
Hi, I'm trying to create my own lib of functions, but it seems like I can only import them if they are in pythons lib folder. Example I have...
0
by: Matthias Sommer | last post by:
I have a strange problem using the python-Idle: I'm used to be able to position the cursor by clicking on the desired position. When I run Idle...
0
by: brianrpsgt1 | last post by:
Using OS X 10.5.5 Python 2.5.1 IDLE was working, then all of a sudden, the window size went off of the screen.... could not resize it. I closed...
6
by: josequinonesii | last post by:
I've searched, I've read, I've tested and re-read numerous post but to no avail yet... Quite simply, the settings I've applied to my httpd.conf,...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.