phoenix_title 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 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.


class_hierarchy Class Hierarchy

Inheritance diagram for class PyApp:

method_summary Methods Summary

__init__

Constructor.

GTKAllowDiagnosticsControl

Allows wxWidgets to selectively suppress some GTK messages.

GTKSuppressDiagnostics

Disables the printing of various GTK messages.

GetAssertMode

Returns the current mode for how the application responds to asserts.

GetComCtl32Version

Returns 400, 470, 471, etc. for comctl32.dll 4.00, 4.70, 4.71 or 0 if

GetDisplayMode

Get display mode that is used use.

GetExitOnFrameDelete

Returns True if the application will exit when the top-level frame is deleted.

GetLayoutDirection

Return the layout direction for the current locale or Layout_Default if it’s unknown.

GetMainTopWindow

Returns a pointer to the top application window if any.

GetTopWindow

Returns a pointer to the top window.

GetUseBestVisual

Returns True if the application will use the best visual on systems that support different visuals, False otherwise.

IsActive

Returns True if the application is active, i.e. if one of its windows is currently in the foreground.

IsDisplayAvailable

Returns True if the application is able to connect to the system’s

MacHideApp

Hide all application windows just as the user can do with the

MacNewFile

Called in response of an “open-application” Apple event.

MacOpenFile

Called in response of an “open-document” Apple event.

MacOpenFiles

Called in response of an openFiles message.

MacOpenURL

Called in response of a “get-url” Apple event.

MacPrintFile

Called in response of a “print-document” Apple event.

MacReopenApp

Called in response of a “reopen-application” Apple event.

OSXEnableAutomaticTabbing

Enable the automatic tabbing features of macOS.

OSXIsGUIApplication

May be overridden to indicate that the application is not a foreground GUI application under macOS.

SafeYield

This function is similar to wx.Yield , except that it disables the user input to all program windows before calling wx.AppConsole.Yield and re-enables it again afterwards.

SafeYieldFor

Works like wx.SafeYield with onlyIfNeeded == True except that it allows the caller to specify a mask of events to be processed.

SetAssertMode

Set the mode indicating how the application responds to assertion

SetDisplayMode

Set display mode to use.

SetExitOnFrameDelete

Allows the programmer to specify whether the application will exit when the top-level frame is deleted.

SetNativeTheme

Allows runtime switching of the UI environment theme.

SetTopWindow

Sets the ‘top’ window.

SetUseBestVisual

Allows the programmer to specify whether the application will use the best visual on systems that support several visual on the same display.


property_summary Properties Summary

AssertMode

See GetAssertMode and SetAssertMode

DisplayMode

See GetDisplayMode and SetDisplayMode

ExitOnFrameDelete

See GetExitOnFrameDelete and SetExitOnFrameDelete

LayoutDirection

See GetLayoutDirection

TopWindow