Editor font in IDLE (Linux)

bowman bowman at montana.com
Wed Jan 24 09:30:59 EST 2001


Gilles Lenfant <glenfant at equod.com.nospam> wrote in message
news:94mkal$2me$1 at reader1.imaginet.fr...
>
> This works only with Windows IDLE.
> I removed :
>          if sys.platform[:3] == 'win':
> and tried different valid font names in:
> text['font'] = ...

I'm not on Linux at the moment, so can't test it, but have you tried passing
the name in the form you get when you run xlsfonts, with all the fields?
I've seen the problem with app-defaults files. If there isn't a good match
to a valid font spec, it defaults back to something else, usually an ugly
monospaced 12 point it picks up from the xterm.






More information about the Python-list mailing list