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 =>nameThe class associated with the Toplevel widget.
-colormap =>\$windowSpecifies another window to share the colormap with. You can point to another window or use the value
newto specify a new colormap. Default isundef.-screen =>screenThe screen to place the toplevel widget on.
-visual =>type nFor the X Window System, changes the depth of colors.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access