The Toplevel Widget
Create a toplevel widget, displayed independently from
the main window with the same decoration as the window system, using
the Toplevel
method.
The standard configuration options that apply to Toplevel
are: -background
, -bg
, -borderwidth
, -bw
, -cursor
, -height
, -highlightbackground
, -highlightcolor
, -highlightthickness
, -relief
, -takefocus
, and -width
.
Other options are:
-class =>
name
The class associated with the Toplevel widget.
-colormap =>
\$
window
Specifies another window to share the colormap with. You can point to another window or use the value
new
to specify a new colormap. Default isundef
.-screen =>
screen
The screen to place the toplevel widget on.
-visual =>
type n
For the X Window System, changes the depth of colors.
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.