
58 Perl/Tk Pocket Reference
-options => [optionList ]
The menuitems, specified as a reference to a list of strings.
-command => callback
The callback to invoke after varRef of
-textvariable is
set.
ROText
This is a Text widget with all bindings removed that would
alter the contents of the text widget. Text can be inserted pro-
grammatically but not altered by the user.
Scrolled
Perl/Tk includes the special constructor Scrolled which cre-
ates a widget with attached scrollbars, as long as the widget
class supports the x/y scrollcommand(s), as Canvas, Entry,
Listbox, and Text do. Scrollbars can be required, or might
spring into existence only when needed.
$scrolled = $parent->Scrolled(widgetClass ...);
You may specifiy option/value pairs which are passed to the
widgetClass constructor.
-scrollbars => scrollbarSpecs
The strings
n, s, e, and w specifiy top, bottom, left, or
right scrollbars, respectively. The string sw creates two
scrollbars on the left and bottom of the widget. The string
o means optional and r required, so rwos means required
on west (vertical), optional on south (horizontal).
-cursor -state
-disabledforeground -takefocus
-font -text
-foreground -textvariable
-height -underline
-highlightbackground -width
-highlightcolor -wraplength