Step Creating the event

The process starts when the event is created.

Most pre-existing event types are created within the wxPython framework in response to specific user actions or system notifications. For example, the mouse entering event is triggered when wxPython notices a mouse move entering the bounds of a new widget object, and the button click event is created after a left mouse down and left mouse up in the same button.

The event is first handed to the object responsible for creating the event. For a button click, the object is the button, for a mouse enter event, the object is the widget entered.

Figure 3.4 Creation of the event that sends focus to the triggering object

Figure 3.4 Creation of the event that sends focus to the triggering object

Was this article helpful?

0 0

Post a comment