X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=tree.py;h=61114b0aee1c652d054f0a1b9d5a92ffa302dfd4;hp=2bbe02be167d28a3497a4d4233fd3dbe08f7f5a0;hb=c1268d62e0862c7c6316ca5c24c054fddc13dd82;hpb=2301b7f97349d29b07fe4f51d30af2721280687a;ds=sidebyside diff --git a/tree.py b/tree.py index 2bbe02b..61114b0 100644 --- a/tree.py +++ b/tree.py @@ -1093,11 +1093,15 @@ class LeftTree(CT.CustomTreeCtrl): if pydata is not None : if 'corpus_name' in pydata or 'corpus' in pydata : - self.ira.ShowMenu('text', True) self.ira.ShowMenu('matrix', False) + self.ira.ShowMenu('text', True) if 'matrix_name' in pydata or 'matrix' in pydata: self.ira.ShowMenu('text', False) - self.ira.ShowMenu('matrix', True) + self.ira.ShowMenu('matrix', True) + if 'uuid' in pydata : + if pydata['uuid'] in ['textroot', 'matroot'] : + self.ira.ShowMenu('text', False) + self.ira.ShowMenu('matrix', False) self.pydata = pydata if pydata['uuid'] in self.parent.history.opened : for i in range(self.parent.nb.GetPageCount()) :