[wxpython-users] Re: wx.Panel doubts...
David Anderson
zerty.david at gmail.com
Fri May 9 07:51:27 PDT 2008
The centering stuff I want to do is like this
Label
Png Image
|Flex | grid | Sizer|
|____|__________|______|
|____|__________|______|
|____|__________|______|
| ___|__________|______|
What's the best way to do this?
I want the Grid centered horizontally like that, just above the label, which
I want to be Align Left, and the image, aligned Right...
On Fri, May 9, 2008 at 10:49 AM, Jorgen Bodde <jorgen.maillist at gmail.com>
wrote:
> >> 1: How to put a Sizer exactly in the Middle of the panel? Even if the
> screen is resized?
>
> Use a VERTICAL box sizer and in there a HORIZONTAL one. The VERTICAL
> should have the property set that it is alligned CENTRE and the
> horizontal box sizer too.
>
> <flag>wxALIGN_CENTER_HORIZONTAL|wxALL</flag>
> <border>5</border>
> <option>1</option>
> <object class=3D"wxBoxSizer">
> <orient>wxHORIZONTAL</orient>
> <object class=3D"sizeritem">
> <flag>wxALIGN_CENTER_VERTICAL|wxALL</flag>
> <border>5</border>
> <object class=3D"wxStaticText" name=3D"wxID_STATIC=
">
> <label>This text is centered</label>
> </object>
> </object>
> </object>
>
> >> 2: Can anyone send me a simple anchor example? cuz I cant
> understand nothing of the demo =3D(,
>
> Why would you like to use them? Sizers do the trick just fine
>
> >> 3: Why when I dont tell the constructor of the panel its size, the
> default sizer never shows everything from the panel?
>
> Depends if the minimal size or getbest size of the control reports this
> properly
>
> >> 4: How to change panels in the same frame?
>
> Either use wx.Wizard which is created for the purpose, or recreate the
> panel. First detach the old one, destroy it, then attach the new one
> and relayout the window
>
> - Jorgen
> _______________________________________________
> 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/200805=
09/ad396003/attachment.htm
More information about the wxpython-users
mailing list