Difference in 8.4/8.5 text widget - Bug or Feature
- From: "Adrian Davis" <adrian@xxxxxxxxxxxx>
- Date: 30 Sep 2005 00:38:10 -0700
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=
.
- Follow-Ups:
- Re: Difference in 8.4/8.5 text widget - Bug or Feature
- From: Steve Redler IV
- Re: Difference in 8.4/8.5 text widget - Bug or Feature
- Prev by Date: How to obtain current IP address?
- Next by Date: Re: My own control structures are slow
- Previous by thread: How to obtain current IP address?
- Next by thread: Re: Difference in 8.4/8.5 text widget - Bug or Feature
- Index(es):
Relevant Pages
|