Changing Fonts in IDLE-0.5

Martin Franklin martin.franklin at westerngeco.com
Wed Feb 14 09:33:09 CET 2001


With idle 0.5 you should take a look around line 141 in 
EditorWindow.py


change this.....

if sys.platform[:3] == 'win':
    text['font'] = ("lucida console", 8)


to just this.....


text['font'] = ("Courier ", 24)


24 may be a little too big but you get the idea.

You should consider upgrading to python 2.0 and idle 0.6

Martin.



Dan Parisien wrote:
> 
> Jeff Stephens wrote:
> > Already did.  The only entries for font are in EditorWindow.py and
> > EditorWindow.pyc.  The latter file can't be viewed in
> > an editor.  I suspect it's some sort of compiled version of the .py
> > file.
> >
> Yep. It's the byte-compiled python source (it's faster for python to load).
> 
> A mad-hack you could pull is changing line 152:
> 
> text['font'] = edconf.get('font-name'), edconf.get('font-size')
> 
> with
> 
> text['font'] = "courier", "12"
> 
> I hope it works :)
> 
> Dan
> --
> http://mail.python.org/mailman/listinfo/python-list




More information about the Python-list mailing list