X-Git-Url: http://iramuteq.org/git?a=blobdiff_plain;ds=sidebyside;f=tree.py;h=6c28c09e4bde651f198284c93286e021fd000f7b;hb=432118f2ac3d2f8234c388e77d0fb9e14234750f;hp=061c74c6b33c1a93c617c8a6f76de57821d4caa1;hpb=cde1ca4b584c2fc29c45cf2e03856edff12a57d8;p=iramuteq diff --git a/tree.py b/tree.py index 061c74c..6c28c09 100644 --- a/tree.py +++ b/tree.py @@ -341,18 +341,18 @@ class LeftTree(CT.CustomTreeCtrl): spec = menu.Append(wx.ID_ANY, u"Spécificté et AFC") classification = wx.Menu() alceste = classification.Append(wx.ID_ANY, u"Méthode GNEPA") - pam = classification.Append(wx.ID_ANY, u"Par matrice des distances") + #pam = classification.Append(wx.ID_ANY, u"Par matrice des distances") menu.AppendMenu(-1, u"Classification", classification) simi = menu.Append(wx.ID_ANY, u"Analyse de similitude") wdc = menu.Append(wx.ID_ANY, u"Nuage de mots") menu.AppendSeparator() self.Bind(wx.EVT_MENU, self.OnAlceste, alceste) - self.Bind(wx.EVT_MENU, self.OnPam, pam) + #self.Bind(wx.EVT_MENU, self.OnPam, pam) self.Bind(wx.EVT_MENU, self.OnStat, stat) self.Bind(wx.EVT_MENU, self.OnSpec, spec) self.Bind(wx.EVT_MENU, self.OnSimiTxt, simi) self.Bind(wx.EVT_MENU, self.OnWordCloud, wdc) - elif pydata.get('type', False) == 'alceste' and pydata['uuid'] in self.parent.history.opened : + elif pydata.get('type', False) == 'alceste' and pydata['uuid'] in self.parent.history.opened : openmenu = wx.Menu() antipro = openmenu.Append(wx.ID_ANY, u"antiprofils") menu.AppendMenu(wx.ID_ANY, u"Ouvrir...", openmenu) @@ -375,10 +375,16 @@ class LeftTree(CT.CustomTreeCtrl): self.Bind(wx.EVT_MENU, self.OnRapport, rapport) elif pydata.get('type', False) == 'stat' and pydata['uuid'] in self.parent.history.opened : export_dictionary = menu.Append(wx.ID_ANY, u"Exporter le dictionnaire") - export_lems = menu.Append(wx.ID_ANY, u"Exporter le dictionnaire des lems") + export_lems = menu.Append(wx.ID_ANY, u"Exporter le dictionnaire des lemmes") self.Bind(wx.EVT_MENU, self.OnExportDictionary, export_dictionary) self.Bind(wx.EVT_MENU, self.OnExportLems, export_lems) menu.AppendSeparator() + elif pydata.get('type', False) == 'gnepamatrix' and pydata['uuid'] in self.parent.history.opened : + openmenu = wx.Menu() + antipro = openmenu.Append(wx.ID_ANY, u"antiprofils") + menu.AppendMenu(wx.ID_ANY, u"Ouvrir...", openmenu) + self.Bind(wx.EVT_MENU, self.OpenAntipro, antipro) + itemdelete = menu.Append(wx.ID_ANY, "Supprimer de l'historique") if item == self.GetRootItem():