Hi,
On wxGtk there is no support for a mouse-scroll-wheel, or for Scrollist.
Are those bugs in wxWidgets or in wxPython?
Anyway, i used the following workaround :
Add from line 40 on the wxpython-demo listctrl_virtual.
···
#######
self.Bind(wx.wx.EVT_MOUSEWHEEL, self.OnGtkMouseScroll)
def OnGtkMouseScroll(self,event):
lines = -(event.m_wheelRotation / event.m_wheelDelta) *
event.m_linesPerAction
self.GtkScroll(lines)
def GtkScroll(self,lines):
#Scrollist is only supported on Windows
top = self.GetTopItem()
if lines < 0: #up
self.EnsureVisible(max(top +lines,0))
else: #down
bottom = top + self.GetCountPerPage()
self.EnsureVisible(min(bottom+lines,self.GetItemCount()))
##############
Martijn.