...
authorPierre Ratinaud <ratinaud@univ-tlse2.fr>
Tue, 18 Nov 2014 10:34:48 +0000 (11:34 +0100)
committerPierre Ratinaud <ratinaud@univ-tlse2.fr>
Tue, 18 Nov 2014 10:34:48 +0000 (11:34 +0100)
layout.py
openanalyse.py
tree.py

index a4834dd..b362300 100644 (file)
--- a/layout.py
+++ b/layout.py
@@ -974,17 +974,8 @@ class MatLayout :
         ira.nb.AddPage(self.sheet, matrix.parametres['matrix_name'])
         self.sheet.Populate(matrix.csvtable)
         self.sheet.parametres = matrix.parametres
         ira.nb.AddPage(self.sheet, matrix.parametres['matrix_name'])
         self.sheet.Populate(matrix.csvtable)
         self.sheet.parametres = matrix.parametres
-        #self.ira.ShowMenu(_(u"View").decode('utf8'))
-        #self.ira.ShowMenu(_(u"Matrix analysis").decode('utf8'))
-        #self.ira.ShowMenu(_(u"Text analysis").decode('utf8'), False)
-        #self.parent.type = "Data"
-        #self.parent.DataPop = False
         ira.nb.SetSelection(ira.nb.GetPageCount() - 1)
         ira.ShowAPane("Tab_content")
         ira.nb.SetSelection(ira.nb.GetPageCount() - 1)
         ira.ShowAPane("Tab_content")
-        #self.ira.OnViewData('')
-
-      
-        
 
 class CopusPanel(wx.Panel) :
     def __init__(self, parent, parametres) :
 
 class CopusPanel(wx.Panel) :
     def __init__(self, parent, parametres) :
index f8c32bb..eb38055 100644 (file)
@@ -149,22 +149,22 @@ class OpenAnalyse():
 
     def doopen(self, corpus) :
         if self.conf['type'] == 'corpus' :
 
     def doopen(self, corpus) :
         if self.conf['type'] == 'corpus' :
-            self.parent.ShowMenu(_("Text analysis"))
+            #self.parent.ShowMenu(_("Text analysis"))
             OpenCorpus(self.parent, self.conf) 
         elif self.conf['type'] == 'stat' :
             OpenCorpus(self.parent, self.conf) 
         elif self.conf['type'] == 'stat' :
-            self.parent.ShowMenu(_("Text analysis"))
+            #self.parent.ShowMenu(_("Text analysis"))
             StatLayout(self.parent, corpus, self.conf)
         elif self.conf['type'] == 'spec' :
             StatLayout(self.parent, corpus, self.conf)
         elif self.conf['type'] == 'spec' :
-            self.parent.ShowMenu(_("Text analysis"))
+            #self.parent.ShowMenu(_("Text analysis"))
             dolexlayout(self.parent, corpus, self.conf)
         elif self.conf['type'] == 'alceste' :
             dolexlayout(self.parent, corpus, self.conf)
         elif self.conf['type'] == 'alceste' :
-            self.parent.ShowMenu(_("Text analysis"))
+            #self.parent.ShowMenu(_("Text analysis"))
             OpenCHDS(self.parent,  corpus, self.conf, Alceste = True)
         elif self.conf['type'] == 'simitxt' or self.conf['type'] == 'clustersimitxt' :
             OpenCHDS(self.parent,  corpus, self.conf, Alceste = True)
         elif self.conf['type'] == 'simitxt' or self.conf['type'] == 'clustersimitxt' :
-            self.parent.ShowMenu(_("Text analysis"))
+            #self.parent.ShowMenu(_("Text analysis"))
             SimiLayout(self.parent, corpus, self.conf)
         elif self.conf['type'] == 'wordcloud' or self.conf['type'] == 'clustercloud':
             SimiLayout(self.parent, corpus, self.conf)
         elif self.conf['type'] == 'wordcloud' or self.conf['type'] == 'clustercloud':
-            self.parent.ShowMenu(_("Text analysis"))
+            #self.parent.ShowMenu(_("Text analysis"))
             WordCloudLayout(self.parent, corpus, self.conf)
         elif self.conf['type'] == 'reinertmatrix' :
             #self.parent.ShowMenu(_("Spreadsheet analysis"))
             WordCloudLayout(self.parent, corpus, self.conf)
         elif self.conf['type'] == 'reinertmatrix' :
             #self.parent.ShowMenu(_("Spreadsheet analysis"))
diff --git a/tree.py b/tree.py
index d8008b1..d1df2d6 100644 (file)
--- a/tree.py
+++ b/tree.py
@@ -1087,10 +1087,10 @@ class LeftTree(CT.CustomTreeCtrl):
             pydata = self.GetPyData(item)
 
         if pydata is not None :
             pydata = self.GetPyData(item)
 
         if pydata is not None :
-            if 'corpus_name' in pydata :
+            if 'corpus_name' in pydata or 'corpus' in pydata :
                 self.ira.ShowMenu('text', True)
                 self.ira.ShowMenu('matrix', False)
                 self.ira.ShowMenu('text', True)
                 self.ira.ShowMenu('matrix', False)
-            if 'matrix_name' in pydata :
+            if 'matrix_name' in pydata or 'matrix' in pydata:
                 self.ira.ShowMenu('text', False)
                 self.ira.ShowMenu('matrix', True)                
             self.pydata = pydata
                 self.ira.ShowMenu('text', False)
                 self.ira.ShowMenu('matrix', True)                
             self.pydata = pydata