[Tutor] How to use Python 2.6 with IDLE?

Dick Moores rdmoores at gmail.com
Mon Jul 27 15:58:53 CEST 2009


On Mon, Jul 27, 2009 at 04:27, Gregor Lingl<gregor.lingl at aon.at> wrote:
> Dick Moores schrieb:
>>
>> I've taken a long break from Python, and now I want to try scripting
>> with 2.62. I downloaded and installed 2.62, changed Win XP
>> environmental variables to use Python26. Entering python at the
>> command line shows I'm using 2.62:
>>
>> C:\Documents and Settings\Riley>python
>> Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit
>> (Intel)] on win32
>> Type "help", "copyright", "credits" or "license" for more information.
>>
>> So I'm able to try out the new features of 2.6 (I had been using
>> 2.51), but I can't get IDLE to use 2.6. When I click on
>> E:\Python26\Lib\idlelib\idle.pyw, I get an IDLE instance that says:
>> Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
>> (Intel)] on win32
>> Type "copyright", "credits" or "license()" for more information.
>>
>> And of course, the new 2.6 features don't work.
>>
>> Advice, please.
>>
>
> I suggest you have to change the association of *.pyw files to the
> program, which is used to 'open' it.
>
> In Windows explorer choose menu extras/directory options,
> then choose tab file types and select PYW type
> then press button 'advacned...' or somethng like this at the bottom
> of the tab, chose 'open' and the button to change this.
>
> If you see the entry
>
> "C:\Python25\pythonw.exe" "%1" %*
>
> change this to Python26

Yes! After I did that, now when I call
E:\Python26\Lib\idlelib\idle.pyw the IDLE that opens uses 2.62.

But I also want to use Ulipad, actually my main Python editor. When I
call E:\Programs\Ulipad3.7\UliPad.pyw (by clicking on it in Explorer),
Ulipad no longer opens. Before I made the change you suggested, at
least Ulipad would open using 2.51. What can I do to use both IDLE and
Ulipad with 2.62?

Dick


More information about the Tutor mailing list