Inheritance diagram for wx.TopLevelWindow:
wx.TopLevelWindow is a common base class for wx.Dialog and wx.Frame.
It is an abstract base class meaning that you never work with objects of this class directly, but all of its methods are also applicable for the two classes above.
wx.ColourDialog, wx.Dialog, wx.DirDialog, wx.FileDialog, wx.FindReplaceDialog, wx.FontDialog, wx.Frame, wx.MDIChildFrame, wx.MDIParentFrame, wx.MessageDialog, wx.MiniFrame, wx.MultiChoiceDialog, wx.NumberEntryDialog, wx.PasswordEntryDialog, wx.PreviewFrame, wx.ProgressDialog, wx.PyPreviewFrame, wx.SingleChoiceDialog, wx.SplashScreen, wx.TextEntryDialog
See also
Center the window on screen
Parameters:
Enables or disables the Close button (most often in the right upper corner of a dialog) and the Close entry of the system menu (most often in the left upper corner of the dialog).
Currently only implemented for wxMSW and wxGTK.
Returns True if operation was successful.
Parameters:
Returns:
bool
Returns a pointer to the button which is the default for this window, or None.
The default button is the one activated by pressing the Enter key.
Returns:
Returns the standard icon of the window.
The icon will be invalid if it hadn’t been previously set by SetIcon.
Returns:
Gets a string containing the window title.
Returns:
string
See also
Iconizes or restores the window.
Parameters:
See also
Returns True if this window is currently active, i.e. if the user is currently working with it.
Returns:
bool
Returns True if this window is expected to be always maximized, either due to platform policy or due to local policy regarding particular class.
Returns:
bool
Returns True if the window is in fullscreen mode.
Returns:
bool
See also
Returns True if the window is iconized.
Returns:
bool
Returns True if the window is maximized.
Returns:
bool
Parameters:
Maximizes or restores the window.
Parameters:
See also
Use a system-dependent way to attract users attention to the window when it is in background.
flags may have the value of either wx.USER_ATTENTION_INFO (default) or wx.USER_ATTENTION_ERROR which results in a more drastic action.
When in doubt, use the default value.
Parameters:
Note
Note that this function should normally be only used when the application is not already in foreground.
Note
This function is currently implemented for Win32 where it flashes the window icon in the taskbar, and for wxGTK with task bars supporting it.
Changes the default item for the panel, usually win is a button.
Parameters:
See also
Note
The window takes a ‘copy’ of icon, but since it uses reference counting, the copy is very quick. It is safe to delete icon after calling this function.
Sets several icons of different sizes for this window: this allows to use different icons for different situations (e.g. task switching bar, taskbar, window title bar) instead of scaling, with possibly bad looking results, the only icon set by SetIcon.
Parameters:
See also
If the platform supports it, sets the shape of the window to that depicted by region. The system will not display or respond to any mouse event for the pixels that lie outside of the region. To reset the window to the normal rectangular shape simply call SetShape again with an empty region.
Returns True if the operation is successful.
Parameters:
Returns:
bool
Allows specification of minimum and maximum window sizes, and window size increments. If a pair of values is not set (or set to -1), the default values will be used.
Sizers will also inspect the minimum window size and will use that value if set when calculating layout.
The resizing increments are only significant under Motif or Xt.
Parameters:
Note
If this function is called, the user will not be able to size the window outside the given bounds (if it is a top-level window.)
Sets the window title.
Parameters:
See also
If the platform supports it will set the window to be translucent.
Returns True if the transparency was successfully changed.
Parameters:
Depending on the value of show parameter the window is either shown full screen or restored to its normal state.
Parameters:
Returns:
bool
Note
This function has not been tested with MDI frames.
Note
Note that showing a window full screen also actually Show if it hadn’t been shown yet.
See also