# This demonstration script creates a toplevel window containing
# several label widgets.
#
# label widget demo (called by 'widget')
#
# toplevel widget
ifdefined?($label_demo)&&$label_demo
$label_demo.destroy
$label_demo=nil
end
# demo toplevel widget
$label_demo=TkToplevel.new{|w|
title("Label Demonstration")
iconname("label")
positionWindow(w)
}
# label
msg=TkLabel.new($label_demo){
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."