Difference in 8.4/8.5 text widget - Bug or Feature
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Difference in 8.4/8.5 text widget - Bug or Feature

From: Adrian Davis <adrian@satisoft.com>
Date: Fri Sep 30 2005 - 09:38:10 CEST

I've just noticed a difference in the behaviour between the 8.4 and 8.5
versions of the text widget.

The following code shows the "issue":-

#==(Start of example code)==#
text .t \
 -height 10 \
 -width 40 \
 -wrap word \
 -tabs {0.5c 1c 1.5c 2c 2.5c 3.0c 3.5c 4.0c 4.5c 5.0c 5.5c 6.0c}

pack .t

# Say I want to indent to the 6th tab...

set indent "[expr {6 * 0.5}]c"

.t tag configure indented -lmargin1 $indent -lmargin2 $indent

.t insert end "LEFT TEXT"
.t insert end "\t\t\t\t\t\tThis is some text which should be wrapped to
an indent" indented
#==(End of example code)==#

When using 8.5 (tclkit), the text begining "This is some text..." is
displaced to the right when compared to 8.4. Obviously I prefer the
8.4 version because my existing code works fine!!

Is this a bug or a "feature?"

Many Thanks,
   =Adrian=
Received on Sat Oct 15 03:53:47 2005