As you can see, none of those wx.StaticText
items align properly when it starts, once you try to resize the window, then it's all working.
Sample code:
self.CodeTitleStaticText = wx.StaticText(id=wxID_MAINFRAMECODETITLESTATICTEXT,
label=u'Code', name=u'CodeTitleStaticText', parent=self.MainPanel,
pos=wx.Point(10, 10), size=wx.Size(80, 20),
style=wx.ALIGN_CENTRE)
Then I put all these wx.StaticText
items into a wx.GridBagSizer
.
Could anybody explain to me in which part did I mess it up?
I'm running win 7 64bit with Python 2.7.3(32bit) and wxPython 2.8.12.1