Font in tkinter / idle

alxchltn at my-deja.com alxchltn at my-deja.com
Wed Feb 23 05:06:07 CET 2000


>
> "Jon K Hellan" <hellan at acm.org> wrote in message
> news:87putpfssr.fsf at parus.parus.no...
> > How do I change the default font for tkinter apps,
> > in particular idle?
> >
> > Jon Kåre
>
>
In article <soEs4.24$CI1.2890 at news>,
  "Robert Hicks" <rhicks at rma.edu> wrote:
> you want to edit EditorWindow.py:
>
> if sys.platform[:3] == 'win':
>             text['font'] = ("verdana", 10)
> #            text['font'] = ("courier new", 10)
>
> change the font and size to what you would like to see...
>
> Bob
If your interested, you can also change the background
and keyword colors.Go to the "IdlePrefs.py" file in the IDLE folder.
These settings are from a post courtesy of Randall Hopper.
(very nice, Randall.)

class ColorPrefs:
    CNormal    = "white", "MidnightBlue"
    CKeyword    = "orange3", None
    CComment    = "red3", None
    CString    = "green3", None
    CDefinition = "cyan3", None
    CHilite    = "#000068", "#006868"
    CSync      = None, None
    CTodo      = None, None
    CBreak      = "#ff7777", None
    CHit        = "#ffffff", "#000000"
    CStdIn      = None, None
    CStdOut    = "gray90", None
    CStdErr    = "red3", None
    CConsole    = "yellow3", None
    CError      = None, "#ff7777"
    CCursor    = None, "gray75"
Good luck,
alx


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list