ScrolledPanel containing FlexGridSizer?

Ned Batchelder wrote:

I'm trying to create a window for displaying a long list of visual gradients. Each gradient will be a fixed height (say 40 pixels), but should stretch the width of the window. I want a vertical scroll bar to accommodate a long list in a short window, but don't want a horizontal scroll bar. Each gradient is displayed with a PaletteWin:

I've tried creating a Frame containing a ScrolledPanel, with a FlexGridSizer, with PaletteWin's. It displays, and the scroll bar works properly, but resizing the frame does not resize the PaletteWin's:

                self.sizer.Add(self.a_palette, wx.EXPAND)

You're missing a parameter. The wx.EXPAND should go in the 3rd parameter, or name it with flag=wx.EXPAND.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!