Allingn controls wxPython
Frank Millman
frank at chagford.com
Sun Dec 16 00:58:57 EST 2007
On Dec 15, 10:14 pm, SMALLp <po... at email.t-com.hr> wrote:
> Hy. I need help. I'm using BoxSizer and i put TextCtrl and StaticText
> next to each other and they gor alligned by top of TextCtrl and it looks
> terrible. How can i make thm to be alligned by center of each controll.
>
> Thnaks!
Use the flag wx.ALIGN_CENTRE_VERTICAL when adding the controls to the
sizer.
If you have a number of StaticText/TextCtrl pairs, and you want them
to line up underneath each other, use a FlexGridSizer or a
GridBagSizer.
Frank Millman
More information about the Python-list
mailing list