Changing Fonts in IDLE-0.5

PoD pod at merlin.net.au
Wed Feb 14 06:40:26 EST 2001


Jeff Stephens wrote:
> 
> Daniel Klein wrote:
> 
> > Jeff,
> >
> > You got me curious about this so after a minute of digging, I found two
> > files, 'config-unix.txt' and 'config-win.txt' in the '/python20/tools/idle'
> > (or C:\python20\tools\idle) directory. It is in these files (depending on
> > your platform) where the font size can be changed.
> >
> > Hope this helps,
> >
> > Daniel Klein
> > Portland OR USA
> >
> 
> I'm running on Linux, specifically, Redhat 6.2.  I don't have either of these
> files.  Here are the
> files in my idle-0.5 directory:
> 
<Snipped>

Here are the config files from my idle directory from Python-2.0, you
never know, they may work.
-------------- next part --------------
# IDLE reads several config files to determine user preferences.  This 
# file is the default config file.  When IDLE starts, it will look in
# the following four files in order:
#     config.txt                      the default config file
#     config-[win/unix/mac].txt       the generic platform config file
#     config-[sys.platform].txt       the specific platform config file
#     ~/.idle                         the user config file
# XXX what about Windows?
#
# The last definition of each option is used.  For example, you can
# override the default window size (80x24) by defining width and
# height options in the EditorWindow section of your ~/.idle file
#
# IDLE extensions can be enabled and disabled by adding them to one of
# the config files.  To enable an extension, create a section with the
# same name as the extension, e.g. the [ParenMatch] section below.  To
# disable an extension, either remove the section or add the 'enable'
# option with the value 0.  

[EditorWindow]
width= 80
height= 24
# fonts defined in config-[win/unix].txt

[Colors]
normal-foreground= black
normal-background= white
# These color types are not explicitly defined= sync, todo, stdin
keyword-foreground= #ff7700
comment-foreground= #dd0000
string-foreground= #00aa00
definition-foreground= #0000ff
hilite-foreground= #000068
hilite-background= #006868
break-foreground= #ff7777
hit-foreground= #ffffff
hit-background= #000000
stdout-foreground= blue
stderr-foreground= red
console-foreground= #770000
error-background= #ff7777
cursor-background= black

[SearchBinding]

[AutoIndent]

[AutoExpand]

[FormatParagraph]

[ZoomHeight]

[ScriptBinding]

[CallTips]

[ParenMatch]
enable= 0
style= expression
flash-delay= 500
bell= 1
hilite-foreground= black
hilite-background= #43cd80
-------------- next part --------------
[EditorWindow]
font-name= courier
font-size= 12


More information about the Python-list mailing list