Version 3 of ttk::label

Updated 2008-05-01 19:30:41 by escargo

Ttk's label widget. Documentation can be found at http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_label.htm

Kevin provides, on comp.lang.tcl, a working example of automatic text wrapping using a Tile label widget.

package require tile 
ttk::label .l -text {This is a very long line of text that I hope will 
dynamically wrap based upon the width of the widget.} -justify left -anchor w 
grid .l -sticky ew 
grid columnconfigure . 0 -weight 1 
bind .l <Configure> {%W configure -wraplength [winfo width %W]}