
10. Perl/Tk Widgets 39
Toplevel
-background => color
Same as standard, but may be empty to preserve color-
map space.
-class => string
Class name for the window to be used by option data-
base.
-colormap => colormap
Color map to use for window. May be the word
new, wid-
get reference of other toplevel, or empty for the default
colormap of screen.
-container => boolean
Whether toplevel is a container used to embed another
application.
-menu => menuref
Specifies the Toplevel’s menu widget.
-screen => screen
Screen on which to place the window.
-use => windowID
Toplevel should be embedded inside window identified
by windowID (see the Window Information command id)
which was created as a container.
-visual => visual
Specifies visual to use for window.
10. Perl/Tk Widgets
Here are Tix and other widgets particular to Perl/Tk. These
widgets and their methods are defined via a use statement;
for example:
-borderwidth -highlightthickness
-cursor -relief
-height -takefocus
-highlightbackground -width
-highlightcolor