if 'formatted' in self.parametres:
self.tableau.make_01_alc_format(self.pathout['mat01.csv'])
else:
- print self.parametres['listsup']
self.tableau.make_01_from_selection(self.parametres['listact'], self.parametres['listsup'])
file = open(self.pathout['listeuce1'], 'w')
file.write('num uce;num uc\n')
# self.colnames = self.tableau.get_colnames()
# AnalyseMatrix.__init__(self, parent, parent.tableau, self.parametres, dlg = dlg)
- def doanalyse(self) :
- res = self.check_val()
- return res
-
- def check_val(self) :
+ def doparametres(self, dlg = None):
self.dial = ProtoDial(self.ira, self.tableau.colnames)
self.dial.CenterOnParent()
self.parametres['typegraph'] = 'classical'
self.parametres['cloud'] = True
else :
- self.parametres['typegraph'] = 'plan'
- table_assoc, table_rank = self.dotable()
- self.makedatas(table_assoc, table_rank)
- self.DoR()
+ self.parametres['typegraph'] = 'plan'
+ self.dial.Destroy()
else :
- return 'stop'
+ self.dial.Destroy()
+ self.parametres = None
+
+ def doanalyse(self) :
+ table_assoc, table_rank = self.dotable()
+ self.makedatas(table_assoc, table_rank)
+ self.DoR()
def dotable(self) :
table_assoc = self.tableau.select_col(self.ColSel1)
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()) :