From mike at pcblokes.com Thu Jan 6 23:38:25 2005 From: mike at pcblokes.com (Michael Foord) Date: Thu Jan 6 23:36:40 2005 Subject: [Idle-dev] Bundling IDLE with py2exe In-Reply-To: <41B0AB70.3040505@pcblokes.com> References: <41B0AB70.3040505@pcblokes.com> Message-ID: <41DDBDE0.7090602@pcblokes.com> Again for completeness. My attempt to bundle IDLE with py2exe became 'Movable Python' - a frozen distribution of python. See http://sourceforge.net/projects/movpy This is a frozen distribution of python (for windows). Once I implemented the '-c' commandline option - IDLE works with it. Regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml Michael Foord wrote: > I'm attempting to bundle IDLE with py2exe (at one of my jobs I don't > have admin rights.. so can't install anything - but I can run stuff > that doesn't need installing). > > I've overcome the first couple of problems (py2exe files don't have a > __file__ attribute, IDLE uses __import__ so I need to manually add > some modules etc). > > However - what I have got so far doesn't work, unsurprisingly. What it > does do is rather surprising and I'd appreciate a bit of help knowing > where to look. > > When I launch my current idle.exe it launches literally hundreds of > subprocesses. I then have to reboot ! > > Any clues as to where in the code this would be happening from ? > > Regards, > > > Fuzzy > http://www.voidspace.org.uk/atlantibots/pythonutils.html > > _______________________________________________ > IDLE-dev mailing list > IDLE-dev@python.org > http://mail.python.org/mailman/listinfo/idle-dev > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.9 - Release Date: 06/01/05 From sizelji at insightbb.com Tue Jan 11 15:41:15 2005 From: sizelji at insightbb.com (Jim Sizelove) Date: Wed Jan 12 17:38:38 2005 Subject: [Idle-dev] IDLE shortcut on Windows XP (was Re: XP and python 2.4, some progress) In-Reply-To: <20050109043456.B3A491E4008@bag.python.org> References: <20050109043456.B3A491E4008@bag.python.org> Message-ID: <41E3E58B.7070808@insightbb.com> Jeffrey Thomas Peery wrote: > I wasn?t able to get the IDLE started in windows XP. I had it working > then I upgraded to 2.4, then it didn?t work so I switched back to 2.3, > still didn?t work so I?m back to 2.4. I did some looking around and I > was able to get the IDLE started by setting the shortcut on my desktop to: > > > > *C:\Python24\python.exe C:\Python24\Lib\idlelib\idle.pyw ?n* > > > > Not sure what this does. But is seems to get it going. What is going on > here? Also I get a console that appears with this message - I have no > idea what it means: > > > > *Warning: configHandler.py ? IdleConf.GetThemeDict ? problem retrieving > theme element ?builtin-background?* > > *For theme ?Jeff?* > > *Returning default value: ?#ffffff?* > > > > Anyhow if anyone can explain what is going on here I would appreciate > the help? and is there anyway to get the IDLE icon in my windows start > menu to work? > > Ok thanks for the help! > > > > Jeff > > > ------------------------------------------------------------------------ > > _______________________________________________ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor I had a similar problem when I installed ActivePython 2.4 on my Windows XP notebook. ActiveState does not include a shortcut to IDLE, but when I right-click on any file ending with .py, "Edit with IDLE" is one of the menu items. This menu item did not work. After much looking around and trying different things, I eventually made a slight change to the PY extension in Folder Options/File Types. The command for the "Edit with IDLE" action looked like this: "C:\Python24\pythonw.exe" "C:\Python24\Lib\idlelib\idle.pyw"-n -e "%1" %* There was no space between the "idle.pyw" and the "-n". Once I inserted a space, the shortcut menu item worked great. I wonder if the space is also missing in the shortcut for IDLE in the Python 2.4 from python.org. Does someone using the standard python 2.4 distribution on Windows XP want to check this out? Jim Sizelove From kbk at shore.net Wed Jan 12 23:55:41 2005 From: kbk at shore.net (Kurt B. Kaiser) Date: Wed Jan 12 23:56:33 2005 Subject: [Idle-dev] IDLE shortcut on Windows XP (was Re: XP and python 2.4, some progress) References: <20050109043456.B3A491E4008@bag.python.org> <41E3E58B.7070808@insightbb.com> Message-ID: <87k6qiz28i.fsf@hydra.bayview.thirdcreek.com> Jim Sizelove writes: > Jeffrey Thomas Peery wrote: >> I wasn.t able to get the IDLE started in windows XP. I had it >> working then I upgraded to 2.4, then it didn.t work so I switched >> back to 2.3, still didn.t work so I.m back to 2.4. I did some >> looking around and I was able to get the IDLE started by setting the >> shortcut on my desktop to: >> *C:\Python24\python.exe C:\Python24\Lib\idlelib\idle.pyw .n* >> Not sure what this does. But is seems to get it going. What is >> going on here? This is a bug which occurred at 2.4. It is fixed in 2.4.1, due out in a few days. See item #2 on this page for the workaround to fix the shortcut: http://www.python.org/2.4/bugs.html >> Also I get a console that appears with this message - >> I have no idea what it means: >> *Warning: configHandler.py . IdleConf.GetThemeDict . problem >> retrieving theme element .builtin-background.* >> *For theme .Jeff.* >> *Returning default value: .#ffffff.* >> Anyhow if anyone can explain what is going on here I would >> appreciate the help. and is there anyway to get the IDLE icon in >> my windows start menu to work? Apparently you customized the Highlighting Themes. There was a change between 2.3 and 2.4 which added a builtin-background (and foreground) selection. That allows you to have a black background, which some people like. If you customized Highlighting, a config-highlight.cfg file was created in your .idlerc/ (the IDLE personal configuration directory which lives in your home directory). When 2.4 tried to load it, it found that the new builtin-background item was missing and errored out. This is a bug in IDLE. See Python Bug # 1080387. The simplest thing to do is delete the config-highlight.cfg file from your .idlerc directory and restart IDLE. If the theme you made was really complicated, see the patch at the bottom of the aforementioned Bug. The marked lines in the patch should be added in the proper locations in your config-highlight.cfg, in each theme. >> Ok thanks for the help! Jeff >> ------------------------------------------------------------------------ >> _______________________________________________ Tutor maillist - >> Tutor@python.org http://mail.python.org/mailman/listinfo/tutor > > I had a similar problem when I installed ActivePython 2.4 on my > Windows XP notebook. ActiveState does not include a shortcut to IDLE, > but when I right-click on any file ending with .py, "Edit with IDLE" > is one of the menu items. This menu item did not work. > > After much looking around and trying different things, I eventually > made a slight change to the PY extension in Folder Options/File Types. > The command for the "Edit with IDLE" action looked like this: > > "C:\Python24\pythonw.exe" "C:\Python24\Lib\idlelib\idle.pyw"-n -e "%1" %* > > There was no space between the "idle.pyw" and the "-n". Once I > inserted a space, the shortcut menu item worked great. I wonder if > the space is also missing in the shortcut for IDLE in the Python 2.4 > from python.org. Does someone using the standard python 2.4 > distribution on Windows XP want to check this out? This would be an ActivePython problem. The spaces are present in the official release. Check your PYW extension, also. -- KBK From scott.rifkin at yale.edu Sat Jan 22 02:22:09 2005 From: scott.rifkin at yale.edu (Scott Rifkin) Date: Sat Jan 22 02:22:27 2005 Subject: [Idle-dev] using idle to log changes in modules Message-ID: I'd like to tweak idle to so that each time I save a module that I'm working on, idle saves and dates the changes that I've made since the last save. It probably would make sense to save them in an adjunct file separated by the time. It seems to me this information is stored in an idle session because after I've made changes, I can Edit-Undo back to the previously saved version. Alternatively, there could be another save option Save-and-log which calls a function to compare the two files and logs the changes. The eventual goal would be to take a current file and reconstruct how it was at a specific time in the past presumably by iterating backwards through the changes since that time. This is my first time looking into the inner workings of idle, so any suggestions of how I could go about doing this would be very welcome - where in the idle files the relevant pieces are. Thanks much, Scott Rifkin From noamr at myrealbox.com Sat Jan 22 18:43:38 2005 From: noamr at myrealbox.com (Noam Raphael) Date: Sun Jan 23 09:03:50 2005 Subject: [Idle-dev] Re: using idle to log changes in modules In-Reply-To: <20050122110115.672921E4019@bag.python.org> References: <20050122110115.672921E4019@bag.python.org> Message-ID: <41F290CA.3030506@myrealbox.com> The undo code site in the file UndoDelegator. It defines a class which is informed on all edit actions, so it can undo them. (I didn't really play with it, so I don't know much more.) This sounds like a nice idea - It would be nice if the UndoDelegator would save to a file all the information in it, and load it when loading a file, so that the undo informations will be saved along with the file, and you would be able to undo immediately after you load the file. Perhaps there should be a way to specify a limit to the history recorded on that file, so that it won't take too much disk space. Good luck! Noam Raphael From kbk at shore.net Sun Jan 23 19:35:49 2005 From: kbk at shore.net (Kurt B. Kaiser) Date: Sun Jan 23 19:35:59 2005 Subject: [Idle-dev] using idle to log changes in modules References: Message-ID: <87acr03se2.fsf@hydra.bayview.thirdcreek.com> Scott Rifkin writes: > I'd like to tweak idle to so that each time I save a module that I'm > working on, idle saves and dates the changes that I've made since the last > save. It probably would make sense to save them in an adjunct file > separated by the time. You are (re)inventing a revision control system. There are several good ones readily available: CVS, Subversion, Arch, to name the most popular of the Free ones. > It seems to me this information is stored in an idle session because > after I've made changes, I can Edit-Undo back to the previously saved > version. Alternatively, there could be another save option Save-and-log > which calls a function to compare the two files and logs the changes. > > The eventual goal would be to take a current file and reconstruct how it > was at a specific time in the past presumably by iterating backwards > through the changes since that time. This is exactly what e.g. CVS does. http://cvsbook.red-bean.com/ Generally, you don't want to be able to roll back every little edit over many days. It gets messy very quickly, and you lose track of what you're doing. You find you want to checkpoint when you reach certain stages in development, and that's what you check into CVS, with a note indicating what the change was about. You might do that several times a day. Often, when I'm working alone and don't want to bother setting up a repository for a project, I'll "Save Copy As.." with an appropriate name: e.g. foo.py.1 foo.py.2 etc., with the highest number the most recent. I keep editing foo.py itself, though. Then I can use diff if I want to find what changed, and roll back to a previous version if I want. Poor man's CVS. Note that if you are working with others on a project you need a 'real' RCS. Two of the original requests on Idle-dev and in the TODO were for auto backups and/or a "pluggable" interface to a revision control system. These might be appropriate additions to IDLE. http://mail.python.org/pipermail/idle-dev/2000-March/thread.html I doubt I would use a backup feature because then I'd have to deal with cleaning up all the ~ files. Autosave might be useful if it was unobtrusive and erased its backup file when the working file was finally saved. I /might/ use a CVS interface, but I really like using the command line to deal with CVS. I don't like the emacs/cvs interface, for example. Although a Revision Control System is a great tool to have, implementing one in IDLE is outside of its design goals, IMO, especially since there are so many good ones out there already. We're trying to avoid 'kitchen sink' syndrome. Even if it was done as an extension, it might be so tightly coupled that we'd have to worry about breaking the extension when modifying IDLE. -- KBK From gvanrossum at gmail.com Mon Jan 24 03:07:06 2005 From: gvanrossum at gmail.com (Guido van Rossum) Date: Mon Jan 24 03:07:14 2005 Subject: [Idle-dev] using idle to log changes in modules In-Reply-To: <87acr03se2.fsf@hydra.bayview.thirdcreek.com> References: <87acr03se2.fsf@hydra.bayview.thirdcreek.com> Message-ID: > Although a Revision Control System is a great tool to have, > implementing one in IDLE is outside of its design goals, IMO, > especially since there are so many good ones out there already. However, a smooth integration with some of the popular ones might be a very cool feature to have. All the professional IDEs have this. -- --Guido van Rossum (home page: http://www.python.org/~guido/) From kbk at shore.net Mon Jan 24 04:16:59 2005 From: kbk at shore.net (Kurt B. Kaiser) Date: Mon Jan 24 04:17:12 2005 Subject: [Idle-dev] using idle to log changes in modules In-Reply-To: (Guido van Rossum's message of "Sun, 23 Jan 2005 18:07:06 -0800") References: <87acr03se2.fsf@hydra.bayview.thirdcreek.com> Message-ID: <87fz0r349g.fsf@hydra.bayview.thirdcreek.com> Guido van Rossum writes: > However, a smooth integration with some of the popular ones might be a > very cool feature to have. OK, I'll look at it. CVS first, I would imagine. Any special requirements? > All the professional IDEs have this. What's 'professional'? IDLE isn't? What's really needed? -- KBK From gvanrossum at gmail.com Mon Jan 24 05:07:24 2005 From: gvanrossum at gmail.com (Guido van Rossum) Date: Mon Jan 24 05:07:27 2005 Subject: [Idle-dev] using idle to log changes in modules In-Reply-To: <87fz0r349g.fsf@hydra.bayview.thirdcreek.com> References: <87acr03se2.fsf@hydra.bayview.thirdcreek.com> <87fz0r349g.fsf@hydra.bayview.thirdcreek.com> Message-ID: > OK, I'll look at it. CVS first, I would imagine. Any special requirements? Let your imagination run wild. But make it a set of hooks so someone can write integration for Perforce, Subversion, even SourceSafe and RCS... > > All the professional IDEs have this. > > What's 'professional'? IDLE isn't? What's really needed? Bloat. Plus, Ctl-Delete and Ctl-Backspace ought to work like they do in most Windows apps (delete word forward/backward). -- --Guido van Rossum (home page: http://www.python.org/~guido/) From pgb9607 at yahoo.com Sat Jan 29 19:28:55 2005 From: pgb9607 at yahoo.com (paul breen) Date: Mon Jan 31 06:43:09 2005 Subject: [Idle-dev] script changed by another process Message-ID: <20050129182855.39536.qmail@web52805.mail.yahoo.com> I like to use my favorite editor to make most changes to a script then switch to IDLE to run the program. The trouble is that idle does not detect that the file has been changed like most editors do. Usually a code editor will ask to reload the file. Idle will not reflect the change even if the file is opened again within the same window. The only way to get around the problem is to close the window and re-open the file in a new window. Are there plans to change to change this behavior? thanks, Paul Breen -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/idle-dev/attachments/20050129/a2c1402d/attachment.htm