visuals.py 文件源码

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

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

        wx.Panel.__init__(self,parent,**kwargs)

        if (fdir[-1] != '/'): fdir+='/'
        self.fdir = fdir
        self.PP = All_PostProc(self.fdir)

        # Loop through all field classes and try to initialise at least one.
        # As fundametal classes typically return zeros on missing results 
        # while DataNotAvailable error is returned for some complex classes
        for item in self.PP.plotlist.items():
            try:    
                self.initialise_visuals(item)
                #If successful, use the current object
                # if not then keep trying
                break
            except DataNotAvailable, ValueError:
                pass
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号