A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://wxpython.org/Phoenix/docs/html/wx.SetCursorEvent.html below:

wx.SetCursorEvent — wxPython Phoenix 4.2.4a1 documentation

wx.SetCursorEvent¶

A wx.SetCursorEvent is generated from wx.Window 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 wx.SetCursorEvent.SetCursor to specify the cursor you want to be displayed.

Events Emitted by this Class¶

Handlers bound for the following event types will receive a wx.SetCursorEvent parameter.

Class Hierarchy¶

Inheritance diagram for class

SetCursorEvent

:

Methods Summary¶

__init__

Constructor, used by the library itself internally to initialize the event object.

GetCursor

Returns a reference to the cursor specified by this event.

GetX

Returns the X coordinate of the mouse in client coordinates.

GetY

Returns the Y coordinate of the mouse in client coordinates.

HasCursor

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

SetCursor

Sets the cursor associated with this event.

Properties Summary¶ Class API¶
class wx.SetCursorEvent(Event)¶

Possible constructors:

SetCursorEvent(x=0, y=0) -> None

A SetCursorEvent is generated from Window when the mouse cursor is about to be set as a result of mouse motion.


Methods¶
__init__(self, x=0, y=0)¶

Constructor, used by the library itself internally to initialize the event object.

Parameters:
  • x (int)

  • y (int)

Return type:

None


GetCursor(self)¶

Returns a reference to the cursor specified by this event.

Return type:

wx.Cursor


GetX(self)¶

Returns the X coordinate of the mouse in client coordinates.

Return type:

int


GetY(self)¶

Returns the Y coordinate of the mouse in client coordinates.

Return type:

int


HasCursor(self)¶

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

Return type:

bool

Note

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


SetCursor(self, cursor)¶

Sets the cursor associated with this event.

Parameters:

cursor (wx.Cursor)

Return type:

None


Properties¶
Cursor¶

See GetCursor and SetCursor


X¶

See GetX


Y¶

See GetY


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4