From 814652e552b663e55f233f045234f83cd8958730 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Sat, 3 Aug 2019 16:22:26 -0400 Subject: [PATCH] Updated tkcon.tcl, which was not corrected for a minor problem that affects use with Tcl/Tk 8.6 (text option "-under" not recognized; must be "-underline"). --- tcltk/tkcon.tcl | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tcltk/tkcon.tcl b/tcltk/tkcon.tcl index 609220a..ea49ae6 100755 --- a/tcltk/tkcon.tcl +++ b/tcltk/tkcon.tcl @@ -741,9 +741,9 @@ proc ::tkcon::EvalCmd {w cmd} { set tag [UniqueTag $w] $w insert output $res [list stderr $tag] \n stderr $w tag bind $tag \ - [list $w tag configure $tag -under 1] + [list $w tag configure $tag -underline 1] $w tag bind $tag \ - [list $w tag configure $tag -under 0] + [list $w tag configure $tag -underline 0] $w tag bind $tag \ "if {!\[info exists tkPriv(mouseMoved)\] || !\$tkPriv(mouseMoved)} \ {[list edit -attach [Attach] -type error -- $PRIV(errorInfo)]}" @@ -2472,8 +2472,8 @@ proc ::tkcon::ErrorHighlight w { set tag [UniqueTag $w] $w tag add $tag $start+${c0}c $start+1c+${c1}c $w tag configure $tag -foreground $COLOR(stdout) - $w tag bind $tag [list $w tag configure $tag -under 1] - $w tag bind $tag [list $w tag configure $tag -under 0] + $w tag bind $tag [list $w tag configure $tag -underline 1] + $w tag bind $tag [list $w tag configure $tag -underline 0] $w tag bind $tag "if {!\$tkPriv(mouseMoved)} \ {[list edit -attach $app -type proc -find $what -- $cmd]}" } @@ -2501,8 +2501,8 @@ proc ::tkcon::ErrorHighlight w { set tag [UniqueTag $w] $w tag add $tag $ix+1c $start $w tag configure $tag -foreground $COLOR(proc) - $w tag bind $tag [list $w tag configure $tag -under 1] - $w tag bind $tag [list $w tag configure $tag -under 0] + $w tag bind $tag [list $w tag configure $tag -underline 1] + $w tag bind $tag [list $w tag configure $tag -underline 0] $w tag bind $tag "if {!\$tkPriv(mouseMoved)} \ {[list edit -attach $app -type proc -- $cmd]}" } @@ -2954,14 +2954,14 @@ proc edit {args} { ## set text $w.text set m [menu [::tkcon::MenuButton $menu Edit edit]] - $m add command -label "Cut" -under 2 \ + $m add command -label "Cut" -underline 2 \ -command [list tk_textCut $text] - $m add command -label "Copy" -under 0 \ + $m add command -label "Copy" -underline 0 \ -command [list tk_textCopy $text] - $m add command -label "Paste" -under 0 \ + $m add command -label "Paste" -underline 0 \ -command [list tk_textPaste $text] $m add separator - $m add command -label "Find" -under 0 \ + $m add command -label "Find" -underline 0 \ -command [list ::tkcon::FindBox $text] ## Send To Menu