Re: [wxpython-users] Re: wx.Panel doubts...
by David Anderson other posts by this author
May 9 2008 7:51AM messages near this date
Re: [wxpython-users] Re: wx.Panel doubts...
|
Re: [wxpython-users] Re: wx.Panel doubts...
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@[...].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="wxBoxSizer">
> <orient>wxHORIZONTAL</orient>
> <object class="sizeritem">
> <flag>wxALIGN_CENTER_VERTICAL|wxALL</flag>
> <border>5</border>
> <object class="wxStaticText" name="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 =(,
>
> 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@[...].org
> http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
>
Thread:
David Anderson
David Anderson
Mark Erbaugh
Kalle Haglunds
python
David Anderson
Mike Driscoll
Jorgen Bodde
David Anderson
Robin Dunn
David Anderson
Robin Dunn
David Anderson
Robin Dunn
C M
|