diff options
author | patthoyts <patthoyts@users.sourceforge.net> | 2007-10-20 09:02:40 (GMT) |
---|---|---|
committer | patthoyts <patthoyts@users.sourceforge.net> | 2007-10-20 09:02:40 (GMT) |
commit | 47fdbe59dcf35b5d135726695be6019d63f65746 (patch) | |
tree | ff869c77da2768bdb27961707e43cc8a70164b22 | |
parent | f65f60056d74d1ed2aea00a142c93d092f6386f0 (diff) | |
download | tk-47fdbe59dcf35b5d135726695be6019d63f65746.zip tk-47fdbe59dcf35b5d135726695be6019d63f65746.tar.gz tk-47fdbe59dcf35b5d135726695be6019d63f65746.tar.bz2 |
On aqua, use tk scrollbar
-rw-r--r-- | library/console.tcl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/library/console.tcl b/library/console.tcl index 9b9615b..3951c5a 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.32 2007/10/12 09:28:29 patthoyts Exp $ +# RCS: @(#) $Id: console.tcl,v 1.33 2007/10/20 09:02:40 patthoyts Exp $ # # Copyright (c) 1995-1997 Sun Microsystems, Inc. # Copyright (c) 1998-2000 Ajuba Solutions. @@ -123,7 +123,11 @@ proc ::tk::ConsoleInit {} { set con [text .console -yscrollcommand [list .sb set] -setgrid true \ -borderwidth 0 -highlightthickness 0 -font TkConsoleFont] - ::ttk::scrollbar .sb -command [list $con yview] + if {[tk windowingsystem] eq "aqua"} { + scrollbar .sb -command [list $con yview] + } else { + ::ttk::scrollbar .sb -command [list $con yview] + } pack .sb -in .consoleframe -fill both -side right -padx 1 -pady 1 pack $con -in .consoleframe -fill both -expand 1 -side left -padx 1 -pady 1 pack .consoleframe -fill both -expand 1 -side left |