Home | Trees | Index | Help |
|
---|
Package wx :: Class Event |
|
object
--+ |Object
--+ | Event
ActivateEvent
,
AuiManagerEvent
,
CalculateLayoutEvent
,
CloseEvent
,
CommandEvent
,
DisplayChangedEvent
,
DropFilesEvent
,
EraseEvent
,
FocusEvent
,
IconizeEvent
,
IdleEvent
,
InitDialogEvent
,
JoystickEvent
,
KeyEvent
,
MaximizeEvent
,
MenuEvent
,
MouseCaptureChangedEvent
,
MouseCaptureLostEvent
,
MouseEvent
,
MoveEvent
,
NavigationKeyEvent
,
NcPaintEvent
,
PaintEvent
,
PaletteChangedEvent
,
PowerEvent
,
ProcessEvent
,
PyEvent
,
QueryLayoutInfoEvent
,
QueryNewPaletteEvent
,
ScrollWinEvent
,
SetCursorEvent
,
ShowEvent
,
SizeEvent
,
SysColourChangedEvent
,
TaskBarIconEvent
,
TimerEvent
An event is a structure holding information about an event passed to a callback or member function. wx.Event is an abstract base class for other event classes
Method Summary | |
---|---|
__init__(self)
| |
__del__(self)
| |
Event | Clone(self)
|
Object |
Returns the object (usually a window) associated with the event, if any. |
EventType |
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 | GetTimestamp(self)
|
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. | |
SetTimestamp(self,
ts)
| |
bool |
Test if this event should be propagated to the parent window or not, i.e. |
This method can be used inside an event handler to control whether further event handlers bound to this event will be called after the current one returns. | |
int |
Stop the event from propagating to its parent window. |
Property Summary | |
---|---|
EventObject : See GetEventObject and SetEventObject | |
EventType : See GetEventType and SetEventType | |
Id : See GetId and SetId | |
Skipped : See GetSkipped | |
thisown : The membership flag | |
Timestamp : See GetTimestamp and SetTimestamp |
Method Details |
---|
GetEventObject(self)Returns the object (usually a window) associated with the event, if any.
|
GetEventType(self)Returns the identifier of the given event type, such as wxEVT_COMMAND_BUTTON_CLICKED.
|
GetId(self)Returns the identifier associated with this event, such as a button command id.
|
GetSkipped(self)Returns true if the event handler should be skipped, false otherwise.
:see:
|
IsCommandEvent(self)Returns true if the event is or is derived from
|
ResumePropagation(self, propagationLevel)Resume the event propagation by restoring the propagation level. (For
example, you can use the value returned by an earlier call to
|
SetEventObject(self, obj)Sets the originating object, or in other words, obj is normally the object that is sending the event.
|
SetEventType(self, typ)Sets the specific type of the event.
|
SetId(self, Id)Set's the ID for the event. This is usually the ID of the window that is sending the event, but it can also be a command id from a menu item, etc.
|
ShouldPropagate(self)Test if this event should be propagated to the parent window or not, i.e. if the propagation level is currently greater than 0.
|
Skip(self, skip=True)This method can be used inside an event handler to control whether further event handlers bound to this event will be called after the current one returns. Without Skip() (or equivalently if Skip(False) is used), the event will not be processed any more. If Skip(True) is called, the event processing system continues searching for a further handler function for this event, even though it has been processed already in the current handler.
|
StopPropagation(self)Stop the event from propagating to its parent window. Returns the old
propagation level value which may be later passed to
|
Property Details |
---|
EventObjectSee
|
EventTypeSee
|
Id |
SkippedSee
|
thisownThe membership flag |
TimestampSee
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:13:38 2007 | http://epydoc.sf.net |