[Idle-dev] open idle edit window only?

Tal Einat taleinat at gmail.com
Sat Jul 21 00:35:54 CEST 2007


On 7/21/07, Paul Guse <paul at mustagh.com> wrote:
> Thanks for the reply.
> If a patch is relatively straight forward I would be definitely interested.
> (time is fairly important).
> I was thinking of hacking it by changing the config file before I ran idle,
> but something more elegant would be great :)
> Paul
>
This is actually very simple.

In Lib\idlelib\PyShell.py, replace this line:
    enable_shell = enable_shell or not edit_start

With this:
    enable_shell = enable_shell or not enable_edit

That's it. Now, opening a file (or files) with the -e flag should do
what you want.

I think this is actually a bug, this logic makes more sense. And it
seems to me what you want would have been the intended behavior of the
-e flag. I'll check this out a bit more, and hopefully post a patch in
a matter of days.

Thanks for pointing this out - I'd noted this but never really thought
about it. User feedback is priceless :)

I hope this helps... Good luck!
- Tal


More information about the IDLE-dev mailing list