Home | Trees | Index | Help |
|
---|
Package wx :: Class IdleEvent |
|
object
--+ |Object
--+ |Event
--+ | IdleEvent
This class is used for EVT_IDLE events, which are generated and sent
when the application becomes idle. In other words, the when the
event queue becomes empty then idle events are sent to all windows (by
default) and as long as none of them call RequestMore
then there are
no more idle events until after the system event queue has some normal
events and then becomes empty again.
By default, idle events are sent to all windows. If this is causing a
significant overhead in your application, you can call
wx.IdleEvent.SetMode
with the value wx.IDLE_PROCESS_SPECIFIED, and
set the wx.WS_EX_PROCESS_IDLE extra window style for every window
which should receive idle events. Then idle events will only be sent
to those windows and not to any others.
Method Summary | |
---|---|
IdleEvent |
Constructor |
__repr__(self)
| |
bool |
Returns True if it is appropriate to send idle events to this window. (Static method) |
int |
Static method returning a value specifying how wxWidgets will send idle events: to all windows, or only to those which specify that they will process the events. (Static method) |
bool |
Returns True if the OnIdle function processing this event requested more processing time. |
Tells wxWidgets that more processing is required. | |
Static method for specifying how wxWidgets will send idle events: to all windows, or only to those which specify that they will process the events. (Static method) | |
Inherited from Event | |
| |
Event |
|
Object |
Returns the object (usually a window) associated with the event, if any. |
wxEventType |
Returns the identifier of the given event type, such as wxEVT_COMMAND_BUTTON_CLICKED. |
int |
Returns the identifier associated with this event, such as a button command id. |
bool |
Returns true if the event handler should be skipped, false otherwise. |
long |
|
bool |
Returns true if the event is or is derived from wx.CommandEvent else
it returns false. |
Resume the event propagation by restoring the propagation level. | |
Sets the originating object, or in other words, obj is normally the object that is sending the event. | |
Sets the specific type of the event. | |
Set's the ID for the event. | |
| |
bool |
Test if this event should be propagated to the parent window or not, i.e. |
Called by an event handler, it controls whether additional event handlers bound to this event will be called after the current event handler returns. | |
int |
Stop the event from propagating to its parent window. |
Inherited from Object | |
Deletes the C++ object this Python object is a proxy for. | |
String |
Returns the class name of the C++ class using wxRTTI. |
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)... |
Instance Method Details |
---|
__init__(self)
|
MoreRequested(self)Returns True if the OnIdle function processing this event requested more processing time.
|
RequestMore(self, needMore=True)Tells wxWidgets that more processing is required. This function can be called by an EVT_IDLE handler for a window to indicate that the application should forward the EVT_IDLE event once more to the application windows. If no window calls this function during its EVT_IDLE handler, then the application will remain in a passive event loop until a new event is posted to the application by the windowing system.
|
Static Method Details |
---|
CanSend(win)Returns True if it is appropriate to send idle events to this window. This function looks at the mode used (see
|
GetMode()Static method returning a value specifying how wxWidgets will send idle events: to all windows, or only to those which specify that they will process the events.
|
SetMode(mode)Static method for specifying how wxWidgets will send idle events: to all windows, or only to those which specify that they will process the events. The mode can be one of the following values:
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Sat Jun 16 17:05:29 2007 | http://epydoc.sf.net |