The main window of the app. More...
Public Member Functions | |
def | __init__ (self, x, y, w, h, title="") |
The constructor. More... | |
![]() | |
def | onclose (self, command) |
Defines a callback to call when the window is closed. More... | |
![]() | |
def | bind (self, sequence=None, func=None, add=None) |
Redefines the tk.Misc.bind() method. More... | |
def | config (self, cnf=None, **kw) |
Configures resources of a widget. More... | |
def | get_config (self, key) |
Returns the value for the key resource. More... | |
def | get_winfo (self, key) |
Returns the widget info for the item key. More... | |
def | has_option (self, opt=None) |
Returns True if the widget admits the given option. More... | |
def | parent (self) |
Returns the widget parent. More... | |
def | toplevel (self) |
Returns the widget toplevel container (a Window or Main). More... | |
def | unbind (self, sequence, funcid=None) |
Redefines the tk.Misc.unbind() method. More... | |
def | winfo_bh (self) |
Returns the height of the widget bounding box. More... | |
def | winfo_bpad (self) |
Returns the list of the four pad amounts (E-N-W-S) of the widget with respect to its bounding box. More... | |
def | winfo_bw (self) |
Returns the width of the widget bounding box. More... | |
def | winfo_bx (self) |
Returns the x coordinate of the widget bounding box topleft corner. More... | |
def | winfo_by (self) |
Returns the y coordinate of the widget bounding box topleft corner. More... | |
def | winfo_height (self) |
Returns the widget height. More... | |
def | winfo_width (self) |
Returns the widget width. More... | |
def | winfo_x (self) |
Returns the x coordinate of the topleft corner of the widget with respect to the parent. More... | |
def | winfo_y (self) |
Returns the y coordinate of the topleft corner of the widget with respect to the parent. More... | |
![]() | |
def | config_children (self, which, **kw) |
Configures resources for all children. More... | |
Additional Inherited Members | |
![]() | |
def | winfo_h = winfo_height |
Alias for winfo_height() More... | |
def | winfo_w = winfo_width |
Alias for winfo_width() More... | |
The main window of the app.
This is the main window (derived from the tkinter Tk class), and has an associated Tcl interpreter, so you cannot execute functions which Tcl calls before constructing this. The Main get destroyed only when your program ends.
Common options (see Widgets properties)
borderwidth, relief, bcolor, cursor, hbcolor, hfcolor, takefocus
Less common options
class, menu, screen, use, colormap, container, highlightthickness, padx, pady, visual
see anzeljg reference) for the class tkinter.Tk
def __init__ | ( | self, | |
x, | |||
y, | |||
w, | |||
h, | |||
title = "" |
|||
) |
The constructor.
x,y,w,h | see Placing the widgets |
title | the window title |
Reimplemented from BaseWindow.