# This demonstration script creates a toplevel window containing
4
# several label widgets.
5
#
6
# SCCS: @(#) label.tcl 1.7 97/03/02 16:25:27
7
8
if{![info exists widgetDemo]}{
9
error"This script should be run from the \"widget\" demo."
10
}
11
12
set w .label
13
catch{destroy $w}
14
toplevel $w
15
wm title $w"Label Demonstration"
16
wm iconname $w"label"
17
positionWindow $w
18
19
label $w.msg -font $font -wraplength 4i -justify left -text "Five labels are displayed below: three textual ones on the left, and a bitmap label and a text label on the right. Labels are pretty boring because you can't do anything with them."