So I have “ImageTile” objects (basically image thumbnails) which need to be sorted into different bins via DnD. I have this working by the following setup:
ImageBin is derived from wx.Panel and contains a custom sizer (derived from wx.PySizer) which manages displaying the ImageTiles (they displayed in rows which are wrapped to fit the ImageBin size.
However, when an ImageBin contains many ImageTiles, they may not all fit, and need to be scrolled within the Bin WHILE being managed by the sizer.
How can I use a ScrolledWindow then to scroll the contents of the ImageBin while maintaining the sizer?
So I have "ImageTile" objects (basically image thumbnails) which need to be sorted into different bins via DnD. I have this working by the following setup:
ImageBin is derived from wx.Panel and contains a custom sizer (derived from wx.PySizer) which manages displaying the ImageTiles (they displayed in rows which are wrapped to fit the ImageBin size.
However, when an ImageBin contains many ImageTiles, they may not all fit, and need to be scrolled within the Bin WHILE being managed by the sizer.
How can I use a ScrolledWindow then to scroll the contents of the ImageBin while maintaining the sizer?
Set the scrolled window's virtual size to be the size that the sizer reports that it needs (CalcMin) and most of the rest should be automatic.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!