diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2007-10-15 21:06:16 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2007-10-15 21:06:16 (GMT) |
commit | abcf21eecbc0627f16250c70fc56ff58348c68a8 (patch) | |
tree | 316082a042e1ef2c5c60073e8be3a90025095d61 /library/demos/twind.tcl | |
parent | b2f828793e2d7f586496d46cdbad418983a474dc (diff) | |
download | tk-abcf21eecbc0627f16250c70fc56ff58348c68a8.zip tk-abcf21eecbc0627f16250c70fc56ff58348c68a8.tar.gz tk-abcf21eecbc0627f16250c70fc56ff58348c68a8.tar.bz2 |
GOOBE work on the widget demo, plus a new demo of text widget peering.
Diffstat (limited to 'library/demos/twind.tcl')
-rw-r--r-- | library/demos/twind.tcl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/library/demos/twind.tcl b/library/demos/twind.tcl index 7510776..b2d35dd 100644 --- a/library/demos/twind.tcl +++ b/library/demos/twind.tcl @@ -3,7 +3,7 @@ # This demonstration script creates a text widget with a bunch of # embedded windows. # -# RCS: @(#) $Id: twind.tcl,v 1.8 2004/12/21 11:56:35 dkf Exp $ +# RCS: @(#) $Id: twind.tcl,v 1.9 2007/10/15 21:06:17 dkf Exp $ if {![info exists widgetDemo]} { error "This script should be run from the \"widget\" demo." @@ -66,7 +66,7 @@ $t insert end "Or, here is another example. If you " $t window create end -create { button %W.click -text "Click Here" -command "textWindPlot %W" \ -cursor top_left_arrow} - + $t insert end " a canvas displaying an x-y plot will appear right here." $t mark set plot insert $t mark gravity plot left @@ -97,6 +97,10 @@ $t window create end \ -cursor top_left_arrow} -padx 3 $t insert end " \n\n" +$t insert end "Users of previous versions of Tk will also be interested " +$t insert end "to note that now cursor movement is now by visual line by " +$t insert end "default, and that all scrolling of this widget is by pixel.\n\n" + $t insert end "You may also find it useful to put embedded windows in " $t insert end "a text without any actual text. In this case the " $t insert end "text widget acts like a geometry manager. For " |