Home | Trees | Index | Help |
|
---|
Package wx :: Class App |
|
object
--+ |Object
--+ |EvtHandler
--+ |PyApp
--+ | App
App
,
App
,
App
,
App
,
App
,
App
,
PySimpleApp
,
PyWidgetTester
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 Also:
wx.PySimpleApp
for a simpler app class that can be used
directly.
Method Summary | |
---|---|
Construct a wx.App object. | |
__del__(self,
destroy)
| |
Destroy(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 | |
| |
bool |
Process the first event in the event queue (blocks until an event appears if there are none currently) |
Exit the main loop thus terminating the application. | |
Exit the main GUI loop during the next iteration of the main loop, (i.e. | |
String |
Get the application name. |
int |
Get the current OnAssert behaviour setting. |
String |
Get the application's class name. |
int |
Returns 400, 470, 471, etc. (Static method) |
bool |
Get the current exit behaviour setting. |
long |
(Static method) |
long |
(Static method) |
String |
(Static method) |
long |
(Static method) |
bool |
(Static method) |
int |
|
Window |
Return the main top level window (if it hadn't been set previously with SetTopWindow(), will return just some top level window and, if there not any, will return None) |
wxAppTraits |
Return (and create if necessary) the app traits object to which we delegate for everything which either should be configurable by the user (then he can change the default behaviour simply by overriding CreateTraits() and returning his own traits object) or which is GUI/console dependent as then wx.AppTraits allows us to abstract the differences behind the common facade. |
bool |
Get current UseBestVisual setting. |
String |
Get the application's vendor name. |
bool |
Return True if our app has focus. |
bool |
Returns True if we're running the main loop, i.e. (Static method) |
bool |
Returns True if there are unprocessed events in the event queue. |
bool |
Called from the MainLoop when the application becomes idle (there are no pending events) and sends a wx.IdleEvent to all interested
parties. |
Process all events in the Pending Events list -- it is necessary to call this function to process posted events. | |
bool |
Send idle event to window and all subwindows. |
Set the application name. | |
Set the OnAssert behaviour for debug and hybrid builds.The following flags may be or'd together: | |
Set the application's class name. | |
Control the exit behaviour: by default, the program will exit the main loop (and so, usually, terminate) when the last top-level program window is deleted. | |
(Static method) | |
(Static method) | |
(Static method) | |
(Static method) | |
(Static method) | |
| |
Set whether the app should try to use the best available visual on systems where more than one is available, (Sun, SGI, XFree86 4, etc.) | |
Set the application's vendor name. | |
Make sure that idle events are sent again. | |
bool |
Process all currently pending events right now, instead of waiting until return to the event loop. |
Inherited from EvtHandler | |
| |
Bind an event to an event handler. | |
| |
bool |
|
bool |
|
EvtHandler |
|
EvtHandler |
|
bool |
|
| |
| |
| |
Disconencts the event handler binding for event from self. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
Return a new object with type S, a subtype of T... | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... |
Class Variable Summary | |
---|---|
classobj |
outputWindowClass = wx.PyOnDemandOutputWindow |
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
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Sat Jun 16 16:45:37 2007 | http://epydoc.sf.net |