def __init__(self,parent,**kwargs):
wx.Panel.__init__(self,parent,**kwargs)
self.componenttitle = wx.StaticText(self,-1,label='Component',size=(100,-1))
self.componentcombobox = wx.ComboBox(self, size=(10,-1), value='0')
choices = ['0','1','2']
self.normaltitle = wx.StaticText(self,-1,label='Normal', size=(100,-1))
self.normalcombobox = wx.ComboBox(self, choices=choices, size=(10,-1),
value='0')
grid = wx.GridBagSizer(hgap=3)
grid.Add(self.componenttitle, (0,0), flag=wx.EXPAND)
grid.Add(self.componentcombobox, (1,0), flag=wx.EXPAND)
grid.Add(self.normaltitle, (0,1), flag=wx.EXPAND)
grid.Add(self.normalcombobox, (1,1), flag=wx.EXPAND)
grid.AddGrowableCol(0)
grid.AddGrowableCol(1)
self.SetSizer(grid)
评论列表
文章目录