- self.page.parametres['tgenpath'] = tgenpath
- tgen = TGen(path = tgenpath, encoding = self.parent.syscoding)
- self.page.parametres['etoiles'] = self.page.etoiles
- TgenSpec(self.parent, corpus, self.page.parametres)
- TgenLayout(self.page)
+ if not os.path.exists(tgenpath) :
+ message = wx.MessageDialog(self.parent, _(u"No TGen yet !"), style = wx.ICON_EXCLAMATION | wx.OK)
+ message.ShowModal()
+ message.Destroy()
+ else :
+ self.page.parametres['tgenpath'] = tgenpath
+ tgen = TGen(path = tgenpath, encoding = self.parent.syscoding)
+ if self.page.parametres['type'] == 'spec' :
+ self.page.parametres['etoiles'] = self.page.etoiles
+ TgenSpec(self.parent, corpus, self.page.parametres)
+ elif self.page.parametres['type'] == 'alceste' :
+ TgenProf(self.parent, corpus, self.page.parametres, self.page.cluster_size)
+ TgenLayout(self.page)