VOOZH about

URL: https://www.geeksforgeeks.org/python/wxpython-change-cursor-image-on-statictext/

⇱ wxPython - Change Cursor image on StaticText - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

wxPython - Change Cursor image on StaticText

Last Updated : 18 Jun, 2020
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
Comment