wx.PyApp¶The wx.App class represents the application itself when USE_GUI=1 .
In addition to the features provided by wx.AppConsole it keeps track of the top window (see SetTopWindow) and adds support for video modes (see SetDisplayMode).
In general, application-wide settings for GUI-only apps are accessible from wx.App (or from wx.SystemSettings or wx.SystemOptions classes).
Events Emitted by this Class¶Event macros for events emitted by this class:
EVT_QUERY_END_SESSION: Process a query end session event, supplying the member function. See wx.CloseEvent.
EVT_END_SESSION: Process an end session event, supplying the member function. See wx.CloseEvent.
EVT_ACTIVATE_APP: Process a wxEVT_ACTIVATE_APP event. See wx.ActivateEvent.
EVT_HIBERNATE: Process a hibernate event. See wx.ActivateEvent.
EVT_DIALUP_CONNECTED: A connection with the network was established. See DialUpEvent .
EVT_DIALUP_DISCONNECTED: The connection with the network was lost. See DialUpEvent .
EVT_IDLE: Process a wxEVT_IDLE event. See wx.IdleEvent.
See also
App Overview, wx.AppTraits, wx.EventLoopBase, wx.SystemSettings
Class Hierarchy¶
Inheritance diagram for class PyApp:
Methods Summary¶Constructor. |
|
Allows wxWidgets to selectively suppress some GTK messages. |
|
Disables the printing of various GTK messages. |
|
Returns the current mode for how the application responds to asserts. |
|
Returns 400, 470, 471, etc. for comctl32.dll 4.00, 4.70, 4.71 or 0 if |
|
Get display mode that is used use. |
|
Returns |
|
Return the layout direction for the current locale or |
|
Returns a pointer to the top application window if any. |
|
Returns a pointer to the top window. |
|
Returns |
|
Returns |
|
Returns True if the application is able to connect to the system’s |
|
Hide all application windows just as the user can do with the |
|
Called in response of an “open-application” Apple event. |
|
Called in response of an “open-document” Apple event. |
|
Called in response of an openFiles message. |
|
Called in response of a “get-url” Apple event. |
|
Called in response of a “print-document” Apple event. |
|
Called in response of a “reopen-application” Apple event. |
|
Enable the automatic tabbing features of macOS. |
|
May be overridden to indicate that the application is not a foreground GUI application under macOS. |
|
This function is similar to |
|
Works like |
|
Set the mode indicating how the application responds to assertion |
|
Set display mode to use. |
|
Allows the programmer to specify whether the application will exit when the top-level frame is deleted. |
|
Allows runtime switching of the UI environment theme. |
|
Sets the ‘top’ window. |
|
Allows the programmer to specify whether the application will use the best visual on systems that support several visual on the same display. |
Properties Summary¶See |
|
See |
|