Inheritance diagram for wx.Event:
An event is a structure holding information about an event passed to a callback or member function. wx.Event used to be a multipurpose event object, and is an abstract base class for other event classes.
See also
wx.ActivateEvent, wx.BookCtrlBaseEvent, wx.CalculateLayoutEvent, wx.ChildFocusEvent, wx.ChoicebookEvent, wx.ClipboardTextEvent, wx.CloseEvent, wx.CollapsiblePaneEvent, wx.ColourPickerEvent, wx.CommandEvent, wx.ContextMenuEvent, wx.DateEvent, wx.DisplayChangedEvent, wx.DropFilesEvent, wx.EraseEvent, wx.FileDirPickerEvent, wx.FindDialogEvent, wx.FocusEvent, wx.FontPickerEvent, wx.HelpEvent, wx.HyperlinkEvent, wx.IconizeEvent, wx.IdleEvent, wx.InitDialogEvent, wx.JoystickEvent, wx.KeyEvent, wx.ListEvent, wx.ListbookEvent, wx.MaximizeEvent, wx.MenuEvent, wx.MouseCaptureChangedEvent, wx.MouseCaptureLostEvent, wx.MouseEvent, wx.MoveEvent, wx.NavigationKeyEvent, wx.NcPaintEvent, wx.NotebookEvent, wx.NotifyEvent, wx.PaintEvent, wx.PaletteChangedEvent, wx.PowerEvent, wx.ProcessEvent, wx.PyCommandEvent, wx.PyEvent, wx.QueryLayoutInfoEvent, wx.QueryNewPaletteEvent, wx.SashEvent, wx.ScrollEvent, wx.ScrollWinEvent, wx.SetCursorEvent, wx.ShowEvent, wx.SizeEvent, wx.SpinEvent, wx.SplitterEvent, wx.SysColourChangedEvent, wx.TaskBarIconEvent, wx.TextUrlEvent, wx.TimerEvent, wx.ToolbookEvent, wx.TreeEvent, wx.TreebookEvent, wx.UpdateUIEvent, wx.WindowCreateEvent, wx.WindowDestroyEvent
Constructor. Should not need to be used directly by an application.
Parameters:
Returns:
Returns a copy of the event.
Any event that is posted to the wxWidgets event system for later action (via wx.EvtHandler.AddPendingEvent or wx.PostEvent) must implement this method. All wxWidgets events fully implement this method, but any derived events implemented by the user should also implement this method just in case they (or some event derived from them) are ever posted.
Returns:
Returns the object (usually a window) associated with the event, if any.
Returns:
Returns the identifier of the given event type, such as wx.wxEVT_COMMAND_BUTTON_CLICKED.
Returns:
int
Returns the identifier associated with this event, such as a button command id.
Returns:
int
Returns True if the event handler should be skipped, False otherwise.
Returns:
bool
Gets the timestamp for the event. The timestamp is the time in milliseconds since some fixed moment (not necessarily the standard Unix Epoch, so only differences between the timestamps and not their absolute values usually make sense).
Returns:
long
Returns True if the event is or is derived from wx.CommandEvent else it returns False.
Returns:
bool
Note
This method exists only for optimization purposes.
Sets the propagation level to the given value (for example returned from an earlier call to StopPropagation).
Parameters:
Sets the event type.
Parameters:
Sets the identifier associated with this event, such as a button command id.
Parameters:
Sets the timestamp for the event.
Parameters:
Test if this event should be propagated or not, i.e. if the propagation level is currently greater than 0.
Returns:
bool
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.
In general, it is recommended to skip all non-command events to allow the default handling to take place. The command events are, however, normally not skipped as usually a single command such as a button click or menu item selection must only be processed by one handler.
Stop the event from propagating to its parent window.
Returns the old propagation level value which may be later passed to ResumePropagation to allow propagating the event again.
Returns:
int