Trees | Index | Help |
|
---|
Package wx :: Module _core :: Class App |
|
object
--+ |Object
--+ |EvtHandler
--+ |PyApp
--+ | App
WizApp
,
XpApp
The ``wx.App`` class represents the application and is used to: * bootstrap the wxPython system and initialize the underlying gui toolkit * set and get application-wide properties * implement the windowing system main message or event loop, and to dispatch events to window instances * etc. Every application must have a ``wx.App`` instance, and all creation of UI objects should be delayed until after the ``wx.App`` object has been created in order to ensure that the gui platform and wxWidgets have been fully initialized. Normally you would derive from this class and implement an ``OnInit`` method that creates a frame and then calls ``self.SetTopWindow(frame)``. :see: `wx.PySimpleApp` for a simpler app class that can be used directly.
Method Summary | |
---|---|
Construct a ``wx.App`` object. | |
__del__(self)
| |
Execute the main GUI event loop | |
Redirect sys.stdout and sys.stderr to a file or a popup window. | |
RestoreStdio(self)
| |
Set the title, position and/or size of the output window if the stdio has been redirected. | |
Set the "main" top level window | |
Inherited from PyApp | |
| |
_BootstrapApp(self) | |
_setCallbackInfo(self, PyObject self, PyObject _class) | |
Dispatch(self) -> bool | |
Exit(self) | |
ExitMainLoop(self) | |
GetAppName(self) -> String | |
GetAssertMode(self) -> int | |
GetClassName(self) -> String | |
GetComCtl32Version() -> int (Static method) | |
GetExitOnFrameDelete(self) -> bool | |
GetMacAboutMenuItemId() -> long (Static method) | |
GetMacExitMenuItemId() -> long (Static method) | |
GetMacHelpMenuTitleName() -> String (Static method) | |
GetMacPreferencesMenuItemId() -> long (Static method) | |
GetMacSupportPCMenuShortcuts() -> bool (Static method) | |
GetPrintMode(self) -> int | |
GetTopWindow(self) -> Window | |
GetTraits(self) -> wxAppTraits | |
GetUseBestVisual(self) -> bool | |
GetVendorName(self) -> String | |
IsActive(self) -> bool | |
IsMainLoopRunning() -> bool (Static method) | |
Pending(self) -> bool | |
ProcessIdle(self) -> bool | |
ProcessPendingEvents(self) | |
SendIdleEvents(self, Window win, IdleEvent event) -> bool | |
SetAppName(self, String name) | |
SetAssertMode(self, int mode) | |
SetClassName(self, String name) | |
SetExitOnFrameDelete(self, bool flag) | |
SetMacAboutMenuItemId(long val) (Static method) | |
SetMacExitMenuItemId(long val) (Static method) | |
SetMacHelpMenuTitleName(String val) (Static method) | |
SetMacPreferencesMenuItemId(long val) (Static method) | |
SetMacSupportPCMenuShortcuts(bool val) (Static method) | |
SetPrintMode(self, int mode) | |
SetUseBestVisual(self, bool flag) | |
SetVendorName(self, String name) | |
WakeUpIdle(self) | |
Yield(self, bool onlyIfNeeded=False) -> bool Process all currently pending events right now, instead of waiting until return to the event loop. | |
Inherited from EvtHandler | |
_setOORInfo(self, PyObject _self) | |
AddPendingEvent(self, Event event) | |
Bind an event to an event handler. | |
Connect(self, int id, int lastId, int eventType, PyObject func) | |
Disconnect(self, int id, int lastId=-1, wxEventType eventType=wxEVT_NULL) -> bool | |
GetEvtHandlerEnabled(self) -> bool | |
GetNextHandler(self) -> EvtHandler | |
GetPreviousHandler(self) -> EvtHandler | |
ProcessEvent(self, Event event) -> bool | |
SetEvtHandlerEnabled(self, bool enabled) | |
SetNextHandler(self, EvtHandler handler) | |
SetPreviousHandler(self, EvtHandler handler) | |
Disconencts the event handler binding for event from self. | |
Inherited from Object | |
Destroy(self) | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
classobj |
outputWindowClass = wx._core.PyOnDemandOutputWindow |
Inherited from EvtHandler | |
Implements |
__implemented__ = <implementedBy wx._core.EvtHandler>
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
Inherited from Object | |
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
Instance Method Details |
---|
__init__(self,
redirect=False,
filename=None,
useBestVisual=False,
clearSigInt=True)
|
MainLoop(self)Execute the main GUI event loop
|
RedirectStdio(self, filename=None)Redirect sys.stdout and sys.stderr to a file or a popup window. |
SetOutputWindowAttributes(self, title=None, pos=None, size=None)Set the title, position and/or size of the output window if the stdio has been redirected. This should be called before any output would cause the output window to be created. |
SetTopWindow(self, frame)Set the "main" top level window
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Jun 24 12:01:19 2005 | http://epydoc.sf.net |