[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
Mon Apr 7 12:53:28 PDT 2008


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 item"
panels are located.. The scrollbar doesn't appear though when the number 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?

Thanks again,
Soren

On Mon, Apr 7, 2008 at 7:16 PM, Robin Dunn <robin at alldunn.com> wrote:

> S=F8ren Nielsen wrote:
>
> > Ok, when I resize the window, my new panel appears.. but the small
> > square in the corner doesn't disappear until i click on another notebook
> > page and back again.. (I forgot to mention that my homemade listbox is
> > located in a notebook page).
> >
>
> If things are fixed when a resize happens then that is a sure sign that
> all you are just missing is a call to either window.Layout() or
> sizer.Layout().  (Because that is what the default EVT_SIZE handler is go=
ing
> to do for windows that have sizers.)
>
> If it still shows the odd square in the corner then there could be a
> separate problem, such as some widget being created with the wrong parent=
 or
> something.  Using the widget inspection tool will help you figure out whe=
re
> that is coming from.
>
>
> --
> 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=
07/ba028934/attachment.htm


More information about the wxpython-users mailing list