wx.SetCursorEvent

Inheritance diagram for wx.SetCursorEvent:



Description

A wx.SetCursorEvent is generated when the mouse cursor is about to be set as a result of mouse motion. This event gives the application the chance to perform specific mouse cursor processing based on the current position of the mouse within the window.

Use SetCursor to specify the cursor you want to be displayed.

Derived From

Event Handling

Event Name Description
wx.EVT_SET_CURSOR(func) Process a wx.wxEVT_SET_CURSOR event.

Properties Summary

Class API

Methods

__init__(x=0, y=0)

Construct a new wx.SetCursorEvent.

Parameters:

  • x (int)
  • y (int)

Returns:

wx.SetCursorEvent


GetCursor()

Returns a reference to the cursor specified by this event.


Returns:

wx.Cursor


GetX()

Returns the X coordinate of the mouse in client coordinates.


Returns:

int


GetY()

Returns the Y coordinate of the mouse in client coordinates.


Returns:

int


HasCursor()

Returns True if the cursor specified by this event is a valid cursor.


Returns:

bool

Note

You cannot specify wx.NullCursor with this event, as it is not considered a valid cursor.


SetCursor(cursor)

Sets the cursor associated with this event.

Parameters:


Properties

Cursor
See GetCursor and SetCursor
X
See GetX
Y
See GetY