Hi,
Using the ScrolledThumbnail widget, I am getting the following error when clicking on a thumbnail which is only partially shown (i.e., which we would need to scroll down or up to show completely).
Traceback (most recent call last):
File "myproject\.venv\Lib\site-packages\wx\lib\agw\scrolledthumbnail.py", line 1817, in OnMouseDown
self.ScrollToSelected()
File "myproject\.venv\Lib\site-packages\wx\lib\agw\scrolledthumbnail.py", line 1540, in ScrollToSelected
self.Scroll(x,sy)
TypeError: _ScrolledWindowBase.Scroll(): arguments did not match any overloaded call:
overload 1: argument 2 has unexpected type 'float'
overload 2: argument 1 has unexpected type 'int'
Here is the relevant code causing the error:
self.scrolledthumbnail.Bind(EVT_THUMBNAILS_SEL_CHANGED, self.OnSelectThumb)
def OnSelectThumb(self, event):
sel = self.thumbnail_scroller.GetSelection()
wx.MessageBox(self.thumbnail_scroller.GetThumbInfo(sel))
Is this a bug? Is there any workaround?
Thanks