Home | Trees | Index | Help |
|
---|
Package wx :: Class Event |
|
object
--+ |Object
--+ | Event
ActivateEvent
,
CalculateLayoutEvent
,
CloseEvent
,
CommandEvent
,
DisplayChangedEvent
,
DropFilesEvent
,
EraseEvent
,
FocusEvent
,
IconizeEvent
,
IdleEvent
,
InitDialogEvent
,
JoystickEvent
,
KeyEvent
,
MaximizeEvent
,
MenuEvent
,
MouseCaptureChangedEvent
,
MouseEvent
,
MoveEvent
,
NavigationKeyEvent
,
NcPaintEvent
,
PaintEvent
,
PaletteChangedEvent
,
ProcessEvent
,
PyEvent
,
QueryLayoutInfoEvent
,
QueryNewPaletteEvent
,
ScrollWinEvent
,
SetCursorEvent
,
ShowEvent
,
SizeEvent
,
SysColourChangedEvent
,
TaskBarIconEvent
,
TimerEvent
Method Summary | |
---|---|
__init__(self)
| |
__del__(self)
| |
__repr__(self)
| |
Event | Clone(self)
|
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 | 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. |
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. |
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:Skip
|
IsCommandEvent(self)Returns true if the event is or is derived fromwx.CommandEvent else
it returns false. Note: Exists only for optimization purposes.
|
ResumePropagation(self, propagationLevel)Resume the event propagation by restoring the propagation level. (For example, you can use the value returned by an earlier call toStopPropagation .)
|
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)Called by an event handler, it controls whether additional event handlers bound to this event will be called after the current event handler returns. Skip(false) (the default setting) will prevent additional event handlers from being called and control will be returned to the sender of the event immediately after the current handler has finished. Skip(True) will cause the event processing system to continue searching for a handler function for this event.
|
StopPropagation(self)Stop the event from propagating to its parent window. Returns the old propagation level value which may be later passed toResumePropagation to allow propagating the event again.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20040428.rpd on Tue Apr 26 14:25:18 2005 | http://epydoc.sf.net |