Font size in IDLE
Gillou
glenfant at equod.com.nospam
Tue Feb 20 09:12:47 EST 2001
Yes... the default window font for idle is ugly and not legible with Linux
Edit EditorWindow.py, search for this:
-----
...
if sys.platform[:3] == 'win':
text['font'] = ("lucida console", 8)
...
-----
And change it against this:
-----
...
# if sys.platform[:3] == 'win': # Works with others than Windows
text['font'] = ("lucidatypewriter", 12) # pretty with a 100 pix/inch
display
...
-----
Test your new font setting for IDLE as "root" to have this effective (users
have no write access to /usr/lib... so they use the "old" EditorWindow.pyc).
That's all!
"Bryan Mongeau" <bryan at eevolved.com> a écrit dans le message news:
uJtk6.284555$JT5.9794163 at news20.bellglobal.com...
> ujen wrote:
>
> > Hi there.
> >
> > How to change font size in IDLE (Python 1.5.2 Linux version )
> >
> >
> >
> > Thanks
> >
> > Eugene Tsymbalov, Russia
>
> grep through the source code looking for the word "font". Once you find
it,
> change it.
> --
> <==================================>
> Bryan Mongeau
> Lead Developer, Director
> eEvolved Real-Time Technologies Inc.
> http://www.eevolved.com
> <==================================>
>
> "Reality is merely an illusion, albeit a very persistent one."-- Einstein
>
More information about the Python-list
mailing list