wxPython BoxSizer

Mike Driscoll kyosohma at gmail.com
Wed Nov 19 13:48:40 EST 2008


On Nov 19, 12:22 pm, Jamie McQuay <Jamie.McQ... at googlemail.com> wrote:
> > > FYI: There's a great wxPython mailing list too. Check it out here:http://wxpython.org/maillist.php
>
> > thanks, i will take a look.
>
> Here is the answer i got from the mailing list (and it works)
>
> Try adding a spacer on both sides of text.
>
> i.e)
> box.AddStretchSpacer()
> box.Add(myText, 0, wx.ALIGN_CENTER)
> box.AddStretchSpacer()
>
> jamie

Yeah...I saw that on the wx list. I either had forgotten about that
method or never knew it existed. The wx.CENTER style should have
worked. Robin Dunn might explain it later. You can learn a lot from
the guys (and girls) on that list though.

Mike



More information about the Python-list mailing list