issue on how to restore the wx.cursor after CT.EVT_TREE_ITEM_GETTOOLTIP event

Hi all.

I have a panel with a child customtreectrl widgets where every item has set cursor with types wx.CURSOR_HAND handling CT.EVT_TREE_ITEM_GETTOOLTIP event.

If i position the mouse in an area where there is no item(after the last item) the cursor is still set with wx.CURSOR_HAND type cursor while i wish you were set with wx.cursor_default. How do i do this?

I’ve attached the script with method OnItemGetToolTipTree

customtreectrl.py (28 KB)

···


Fabio Spadaro
www.fabiospadaro.com