wxPython – Change cursor for ToolBar
In this article will learn how can we change the cursor to a custom image cursor when it hovers over the toolbar. To do this we need to follow some steps as follows.
Step 1: Create wx.Image object of the image you like.
Step 2: Create wx.Cursor object passing image as parameter.
Step 3: Set cursor for toolbar using SetCursor() method.
Parameter Input Type Description size wx.Size Size for radio button
Return Type: bool
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course