class MainFace(wxFrame):
def __init__(self, parent, ID, title):
..............
billPanel = wx.Panel(self, -1)
gbs = self.gbs = wx.GridBagSizer(14, 5)
gbs.Add( wx.StaticText(billPanel, -1, "付款帐号"), (0,1), (1,2),
wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL)
gbs.Add( wx.Choice(billPanel, -1, choices = sampleList), (0,3), (1,9),
wx.EXPAND )
gbs.Add( wx.StaticText(billPanel, -1, "用途"), (0,12), (1,1),
wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL)
gbs.Add( wx.Choice(billPanel, -1,(10, 10), choices = sampleList2), (0,13),
(1,2), wx.EXPAND )
...............
...............
gbs.AddGrowableCol(3)
gbs.AddGrowableCol(7)
gbs.SetHGap(5)
gbs.SetVGap(5)
billPanel.SetSizerAndFit(gbs)
self.SetClientSize((600, 340))