it gets worse (was: How do you configure IDLE on a Mac...)

Mensanator mensanator at
Tue Jan 5 19:24:39 CET 2010

On Jan 5, 12:32 am, Ned Deily <n... at> wrote:
> In article
> <0d70cb54-3d77-4176-b621-e764ecf61... at>,
>  Mensanator <mensana... at> wrote:
> > I assume I've been using the IDLE from macports. From the command
> > prompt I've
> > been typing "idle". This launches a "shell" window which appears to
> > have an X11
> > parent application for which there are no "preferences" applicable to
> > fonts.
> > However, if I use the quick launcher from the, I get a
> > "shell" whose
> > parent is named "IDLE"! And that one has a completely different
> > preferences,
> > one similar the the Windows Configure which allows me to set the font!
> > Now, if I close this shell and start IDLE from the command line again,
> > I still
> > get a "shell" with an X11 parent, but, lo and behold, the font has
> > changed to
> > what I had previously set with the IDLE parent.
> > Course, I can't import gmpy, cause the version can't
> > compile it, so I
> > still have to use the macports install of 3.1, but that's ok, once I
> > use
> > the IDLE application to set the preferences, I can switch back to the
> > X11 version and the preferences will follow.
> The prefs follow because all versions of IDLE use the same (unversioned)
> directory for configuration files, ~/.idlerc/.  In particular, the
> configuration file ~/.idlerc/config-main.cfg contains, among other
> things, any changes to the default font.  So, if you're successful at
> changing it in one version of IDLE, it will likely affect all versions
> you have.  Note the file is a simple ini format:
> [EditorWindow]
> font = monaco
> so you can edit it by hand.

Good to know. But, as the subject says...

> BTW, the IDLEs and the Apple-supplied IDLEs use the
> system-supplied Aqua (aka Quartz) Tk not the X11 one that MacPorts
> builds by default.  The MacPorts Tk port does have a "quartz" variant
> but that doesn't yet work in 64-bit mode.

So, for all practical purposes, the macports install is broken also.

IDLE simply does not work in an X11 window (you think someone would
have noticed that). The missing preferences is just the beginning.
Apparently NONE of the menu item shortcuts work.

For example, the Cut, Copy, Paste shortcuts are given as Command-X,
Command-C and Command-V. But that doesn't work in an X11 window,
apperently only in an Aqua Tk (parent application appears as IDLE).

Of course, I can do Control-X, Control-C and Control-V to do Cut,
Copy and Paste. Don't know if this works for all shortcuts, but
I suppose I could just pick them from the menu (and I can bang
my head against the wall while I'm at it).

What do you think, suppose I copy the gmpy built with the macports
install over to the directory where the version is? Would
import? If that'll work, I can switch back to using the
install and use it's version of IDLE. I certainly won't be needing
distutils once I have a working version of gmpy.

> --
>  Ned Deily,
>  n... at Hide quoted text -
> - Show quoted text -

More information about the Python-list mailing list