
24 Perl/Tk Pocket Reference
-label => string
Textual string to display on left side of menu entry.
-menu => menuRef
menuRef of a menu to post when cascade entry is active.
-offvalue => value
Value to store in checkbutton entry’s associated variable
when deselected.
-onvalue => value
Value to store in checkbutton entry’s associated variable
when selected.
-selectcolor => color
Color for indicator in checkbutton and radiobutton
entries.
-selectimage => image
Image to draw in indicator for checkbutton and radio-
button entries.
-value => value
Value to store in radiobutton entry’s associated variable
when selected.
-variable => varRef
Name of global variable to set when checkbutton or
radiobutton is selected.
8. The Text Widget
Text Widget Options
-background -insertwidth
-borderwidth -padx
-cursor -pady
-exportselection -relief
-font -selectbackground
-foreground -selectborderwidth
-height -selectforeground
-highlightbackground -setgrid
-highlightcolor -state