You can specify wx.ALIGN_RIGHT as a flag for the sizer item when you add it to the sizer.
I've attached a modification of your code.
test.py (707 Bytes)
···
On Sat, 18 Aug 2012 07:20:25 +0200, Sakh <iaroslav.akimov@gmail.com> wrote:
Hello,
How can I make GridBagSizer align elements to the right? I tried
wx.ALIGN_CENTRE flag, setting size to the StaticText, etc, but nothing
seems to work. Thank you.