[wxpython-users] Re: Wxpython. Is it possible to change layout in a running application? Selfmade listbox

Søren Nielsen soren.skou.nielsen at gmail.com
Tue Apr 8 00:59:53 PDT 2008


Perfect. Thanks again Robin!

Soren

On Tue, Apr 8, 2008 at 3:43 AM, Robin Dunn <robin at alldunn.com> wrote:

> S=F8ren Nielsen wrote:
>
> > Thanks Robin, the Layout call fixed the problem! I have another problem
> > now though.. I'm using a scrolled.ScrolledPanel (scrolled =3D
> > wx.lib.scrolledpanel), as the underlying panel where my new "listbox it=
em"
> > panels are located.. The scrollbar doesn't appear though when the numbe=
r of
> > new panels are too big for the underlying panel, even if I call the
> > Layout(), but when I resize the window, it appears. Is
> > scrolled.ScrolledPanel a special case?
> >
>
> You'll want to reset the virtual size to be the new size reported by the
> top level sizer.  Something like
> self.SetVirtualSize(self.GetBestVirtualSize())
>
>
> --
> Robin Dunn
> Software Craftsman
> http://wxPython.org  Java give you jitters?  Relax with wxPython!
>
> _______________________________________________
> wxpython-users mailing list
> wxpython-users at lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200804=
08/df7e1e14/attachment.htm


More information about the wxpython-users mailing list