X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=tree.py;h=6c28c09e4bde651f198284c93286e021fd000f7b;hp=c3f0ba6c2c54aefe5c28b29b6c791c45a5362ae4;hb=278fceaa7db7b84d7c6f3bbd3f86e5ddb0ebda09;hpb=adc24190c47d42d5fa02f074516fc331950d8c5c diff --git a/tree.py b/tree.py index c3f0ba6..6c28c09 100644 --- a/tree.py +++ b/tree.py @@ -352,7 +352,7 @@ class LeftTree(CT.CustomTreeCtrl): 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) @@ -379,6 +379,12 @@ class LeftTree(CT.CustomTreeCtrl): 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():