+ elif event.Entering() and self._foldIcons:
+ pt = event.GetPosition()
+ rect = self.GetRect()
+
+ drw = (rect.GetWidth() - self._iconWidth - self._rightIndent)
+ if vertical and pt.x > drw or not vertical and \
+ pt.y < (self._iconHeight + self._rightIndent):
+ self.SetCursor(wx.StockCursor(wx.CURSOR_HAND))
+ else:
+ self.SetCursor(wx.StockCursor(wx.CURSOR_ARROW))
+
+ elif event.Leaving():
+ self.SetCursor(wx.StockCursor(wx.CURSOR_ARROW))
+
+ elif event.Moving():
+ pt = event.GetPosition()
+ rect = self.GetRect()
+
+ drw = (rect.GetWidth() - self._iconWidth - self._rightIndent)
+ if vertical and pt.x > drw or not vertical and \
+ pt.y < (self._iconHeight + self._rightIndent):
+ self.SetCursor(wx.StockCursor(wx.CURSOR_HAND))
+ else:
+ self.SetCursor(wx.StockCursor(wx.CURSOR_ARROW))
+