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")
- #self.ira.OnViewData('')
-
-
-
class CopusPanel(wx.Panel) :
def __init__(self, parent, parametres) :
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' :
- self.parent.ShowMenu(_("Text analysis"))
+ #self.parent.ShowMenu(_("Text analysis"))
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' :
- 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' :
- 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':
- 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"))
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)
- 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