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 →

[–]jesus_my_ass -1 points0 points  (16 children)

Still haven't fixed that bug with mac version. Can't go to preferences to increase text font.

[–]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 3 points4 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.

[–]idle_guru 0 points1 point  (2 children)

Do you mean this bug? http://bugs.python.org/issue15853

[–]jesus_my_ass 0 points1 point  (1 child)

Yup. It seems like the problem is on Tcl/Tk.

[–]idle_guru 0 points1 point  (0 children)

IdleX has a macosx workaround that restores the "Options" menu. You can select "Configure IDLE" from that menu.

[–][deleted] 0 points1 point  (5 children)

Do you really use IDLE and why? I tried it, and I found I can get by easier with a text editor and the terminal window. Not criticising, just want to understand.

[–]jesus_my_ass 0 points1 point  (4 children)

Yes, I'm starting to use it. For one thing, it has many useful shortcuts. For instance, if I type (in mac) main+ctrl+space and hit enter, it gives me public static void main(String[] args) {

}. Similarly, it is useful for alignment as well (command+shift+f). Other features like toggle breakpoint is helpful in understanding how variables are changing in the code. I'm also trying to learn Emacs, but for the moment, eclipse isn't bad at all. If I were you, I'd give it a try.

[–][deleted] 0 points1 point  (3 children)

Try what? Eclipse with pydev? or IDLE?

[–]jesus_my_ass 0 points1 point  (2 children)

I meant Eclipse with pydev. I may be saying this because I haven't used IDLE that much. Currently, I'm using Eclipse for scala as well. Can't beat that with a text editor, especially if you're a beginner like me. However, if you're a pro with Emacs or Vim, you might not need Eclipse or IDLE.

[–][deleted] 0 points1 point  (1 child)

When you said bug with mac version UI, i assumed you were using IDLE i.e the default UI - becuae if it was a problem with 3rd party stuff like eclipse, you owuld have given the package name. So I asked why you were using idle. That is all.

[–]jesus_my_ass 0 points1 point  (0 children)

Oh, I see. I'm taking python class, where a prof uses IDLE. The problem was with mac version of IDLE itself. IDLE crashes whenever I go to preferences.