+ var = word.split('_')
+ #words = ['_'.join([var[0],word]) for word in self.var_mod[var[0]]]
+ try :
+ words = [word for word in var_mod[var[0]]]
+ except KeyError:
+ dial = wx.MessageDialog(self, _("This is not a meta-data"), _("Problem"), wx.OK | wx.ICON_WARNING)
+ dial.CenterOnParent()
+ dial.ShowModal()
+ dial.Destroy()
+ return
+ words.sort()
+ tableout = []
+ kwords = []
+ for word in words :
+ if word in fchistable :
+ tableout.append(vchistable[fchistable.index(word)])
+ kwords.append(word)
+ BarFrame(self.Source.parent, tableout, title, kwords)
+
+ def OnChronoChi2(self, evt) :
+ word = self.getselectedwords()[0]
+ if len(word.split('_')) <= 1 :
+ dial = wx.MessageDialog(self, _("This is not a variable_modality form"), _("Problem"), wx.OK | wx.ICON_WARNING)
+ dial.CenterOnParent()
+ dial.ShowModal()
+ dial.Destroy()
+ return
+ if 'corpus' in dir(self.Source):
+ corpus = self.Source.corpus
+ if word.startswith('-*') :
+ if self.them_mod == {} :
+ self.them_mod = self.Source.corpus.make_theme_dict()
+ var_mod = self.them_mod
+ else :
+ if self.var_mod == {} :
+ self.var_mod = self.Source.corpus.make_etoiles_dict()
+ var_mod = self.var_mod
+ else :
+ corpus = self.Source.tableau
+ if self.var_mod == {} :
+ self.var_mod = treat_var_mod([val for val in corpus.actives] + [val for val in corpus.sups])
+ var_mod = self.var_mod
+ var = word.split('_')
+ #words = ['_'.join([var[0],word]) for word in self.var_mod[var[0]]]
+ try :
+ words = [word for word in var_mod[var[0]]]
+ except KeyError:
+ dial = wx.MessageDialog(self, _("This is not a meta-data"), _("Problem"), wx.OK | wx.ICON_WARNING)
+ dial.CenterOnParent()
+ dial.ShowModal()
+ dial.Destroy()
+ return
+ words.sort()
+ vartoplot = var[0] + '_'
+ parametres = {'var' : vartoplot}
+ ChronoFrame(self.Source.parent, parametres, self.Source.pathout, which = 'chi2')
+
+ def OnChronoProp(self, evt) :