I'm trying to make use of wx.lib.scrolledpanel.ScrolledPanel, but I'm
having some difficulty. I've put an example app up here: http://paste.ubuntu.com/680853/
I'm trying to make an app that generates a scrolling list of panels,
one for each file the user wants to operate on. My ideal case here
would be that I'd specify the size of the ScrolledPanel, and if I
stuff too many things into it it generates scrollbars to compensate.
That's how it works in the examples I've found online; I can't figure
out what the difference is between my case and theirs. I do know that
if I change line 24 to SetSizerAndFit instead of just SetSizer, then I
do at least see my content; however it is of course taking up too much
space and there's no scrollbars to be seen.
You were very close. The problem was not actually with how you're using the scrolled panel, but rather how it was added to its parent's sizer. Compare the attached with your code.
I'm trying to make use of wx.lib.scrolledpanel.ScrolledPanel, but I'm
having some difficulty. I've put an example app up here: http://paste.ubuntu.com/680853/
I'm trying to make an app that generates a scrolling list of panels,
one for each file the user wants to operate on. My ideal case here
would be that I'd specify the size of the ScrolledPanel, and if I
stuff too many things into it it generates scrollbars to compensate.
That's how it works in the examples I've found online; I can't figure
out what the difference is between my case and theirs. I do know that
if I change line 24 to SetSizerAndFit instead of just SetSizer, then I
do at least see my content; however it is of course taking up too much
space and there's no scrollbars to be seen.