In this article we will learn how can we change cursor image when cursor hovers over the static text. We can do it by creating a cursor object and using SetCursor() function associated with wx.StaticText class of wxPython. SetCursor() takes wx.Cursor object as a parameter.
Syntax: wx.StaticText.SetCursor(cursor)
Parameters:
| Parameter |
Input Type |
Description |
| cursor |
wx.Cursor |
cursor to be set. |
Code Example:
Output Window:
👁 Image