473,326 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 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 5333
"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" Window, I get the message: Exception in Tkinter...
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 seems to work just fine, and I'm able to import...
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 sub-processes 'don't work' on windows. In fact the...
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 get saved in DOS format and won't run on the Linux...
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 program directory (where python is installed)....
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 a folder called K:\mypython Now in the...
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 under Mandriva (or under Arch Linux as well) this...
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 IDLE and rebooted and now IDLE will not start. ...
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, httpd-vhost.conf and my hosts files simply does not...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.