Panel Refresh Question

Tim Royal wrote:

Howdy howdy. I built a wxScrollingPanel that I fill with individual
sub-panels, and then resize the scrolling panel to fit.

Up until this afternoon, When I did this, everythign worked fine, the
scrolling panel would flicker (as the panels were added), and then it'd
display precisely how I wanted.

This afternoon, for some reason, I found that it would no longer display
properly (it would show everything bunched up in the top of the scroll bar.
However, if I resize the panel at all, it instantly pops into view as I'd
expect.

Is there a way to tell a panel to redraw itself, or is there some way to
force it to display without sending a redraw().. I have no clue what could
have changed (went line by line back through version history, nothing
obvious).

Calling panel.Layout() should do it. Depending on the sequence of things you may want to call it with wxCallAfter(panel.Layout) so it happens after everything has been fully set up.

ยทยทยท

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