Re: StaticText alignment

Dietmar Schwertberger <[email protected]>
Newsgroups gmane.comp.python.wxglade
Message-ID <[email protected]>
On 7/30/2017 12:28 PM, Brendan Simon (eTRIX) wrote:
> I have some wx.StaticText widgets in some sizers.  I've specified the 
> sizer to expand and to align to the centre (horizontal and vertical).  
> I've also specified the widget itself to align to the centre.
Usually, if EXPAND is set, then ALIGN_CENTER has no effect any more.

> Is this likely to be a wxglade issue or a wxPython (4.0.0b1) issue ?
I would think that it's related to wxPython.
Do you call sizer.Layout after changing the label?
Also try sizer.GetItem(label).SetFlag(wx.ALIGN_CENTER) after changing 
the label.

Regards,

Dietmar

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
wxGlade-general mailing list
wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/wxglade-general
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.