choosefield.py 文件源码

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

项目:pyDataView 作者: edwardsmith999 项目源码 文件源码
def __init__(self,parent,**kwargs):
        scrolled.ScrolledPanel.__init__(self, parent,**kwargs)

        choices = latextounicode(sorted(parent.parent.PP.plotlist.keys()))
        self.fieldradiobox = wx.RadioBox(self,label='Field',    
                                    style=wx.RA_SPECIFY_ROWS,
                                    choices=choices)
        vbox = wx.BoxSizer(wx.VERTICAL)
        vbox.Add(self.fieldradiobox, 0, wx.EXPAND|wx.ALL, 10)
        self.SetSizer(vbox)
        self.SetAutoLayout(1)
        self.SetupScrolling(scroll_x=False, scrollToTop=False)

        #Fix to prevent jump to top when select
        self.Bind(wx.EVT_CHILD_FOCUS, self.on_focus)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号