choosefield.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:pyDataView 作者: edwardsmith999 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号