diff options
author | patthoyts@users.sourceforge.net <patthoyts> | 2009-01-30 21:06:05 (GMT) |
---|---|---|
committer | patthoyts@users.sourceforge.net <patthoyts> | 2009-01-30 21:06:05 (GMT) |
commit | 9877e2b695b30c82c4c2b8bf28bf54398b22560e (patch) | |
tree | 0b5d6239c1eb310ef2de27203e9688678efe4a83 /library/console.tcl | |
parent | 5c93b28cfb533b6dfb46a6e4072d6163738e7415 (diff) | |
download | tk-9877e2b695b30c82c4c2b8bf28bf54398b22560e.zip tk-9877e2b695b30c82c4c2b8bf28bf54398b22560e.tar.gz tk-9877e2b695b30c82c4c2b8bf28bf54398b22560e.tar.bz2 |
catch font create when the console is re-sourced via F9
Diffstat (limited to 'library/console.tcl')
-rw-r--r-- | library/console.tcl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/console.tcl b/library/console.tcl index 6c176bc..7008c91 100644 --- a/library/console.tcl +++ b/library/console.tcl @@ -4,7 +4,7 @@ # can be used by non-unix systems that do not have built-in support # for shells. # -# RCS: @(#) $Id: console.tcl,v 1.37 2007/12/13 15:26:27 dgp Exp $ +# RCS: @(#) $Id: console.tcl,v 1.37.2.1 2009/01/30 21:06:05 patthoyts Exp $ # # Copyright (c) 1995-1997 Sun Microsystems, Inc. # Copyright (c) 1998-2000 Ajuba Solutions. @@ -106,7 +106,7 @@ proc ::tk::ConsoleInit {} { . configure -menu .menubar # See if we can find a better font than the TkFixedFont - font create TkConsoleFont {*}[font configure TkFixedFont] + catch {font create TkConsoleFont {*}[font configure TkFixedFont]} set families [font families] switch -exact -- [tk windowingsystem] { aqua { set preferred {Monaco 10} } |