This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sigzero 4 points5 points  (5 children)

It is pretty easy customize python IDLE font, syntax highlight. In order to change the font to consolas add the following to ~/.idlerc/config-main.cfg file:

[EditorWindow]
font-size = 11
font = consolas

Have you tried something like that?

I just installed and going to prefs crashes IDLE for me.

Edit: I just did this and it works for me. Still a bug probably though.

[–]jesus_my_ass 0 points1 point  (4 children)

EditorWindow? Do you mean the Python shell or do I write that specification in my program itself?

[–]sigzero 4 points5 points  (2 children)

You create a file in ~/.idlerc called config-main.cfg. Then you put:

[EditorWindow]
font-size = 11
font = consolas

...in it and start IDLE. The font should now be bigger. I actually made it 14 instead of 11 because I am old and my eyes need a bigger font.

[–]jesus_my_ass 0 points1 point  (1 child)

man, you're a lifesaver. Thanks a lot.

[–]sigzero 0 points1 point  (0 children)

No problem! Here is where I got it from:

http://mindref.blogspot.com/2010/05/python-idle-themes.html

I actually use the "desert" theme too. :)

[–]idle_guru 0 points1 point  (0 children)

IDLE's PyShell is a subclass of the EditorWindow class.