Changing Fonts in IDLE-0.5

Dan Parisien dan at eevolved.com
Wed Feb 14 06:41:11 CET 2001


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



More information about the Python-list mailing list