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
评论列表
文章目录