Python Tkinter - Toplevel Widgettoplevel = Toplevel(root, bg, fg, bd, height, width, font, ..)
Optional parameters
- root = root window(optional)
- bg = background colour
- fg = foreground colour
- bd = border
- height = height of the widget.
- width = width of the widget.
- font = Font type of the text.
- cursor = cursor that appears on the widget which can be an arrow, a dot etc.
Common methods
- geometry - sets dimensions of window
- iconify - turns the windows into icon.
- deiconify - turns back the icon into window.
- state - returns the current state of window.
- withdraw - removes the window from the screen.
- title - defines title for window.
- frame - returns a window identifier which is system specific.
Resources
Python Tkinter - Toplevel Widget
Tkinter 8.5 reference: a GUI for Python
tkinter.Toplevel