self.ori = corpus
self.dlg = dlg
corpus_name = 'Sub' + corpus.parametres['corpus_name']
+ if dlg is not None :
+ busy = wx.BusyInfo(_("Please wait...").decode('utf8'), self)
+ wx.SafeYield()
parametres['corpus_name'] = corpus_name
if parametres.get('frommeta', False) :
parametres['meta'] = corpus.make_etoiles()
else :
parametres['meta'] = []
parametres['meta'].sort()
+ if dlg is not None :
+ del busy
dial = SubTextFromMetaDial(parent, parametres)
self.res = dial.ShowModal()
if self.res == 5100 :
def OnSubText(self, corpus, parametres = None):
if corpus is None :
corpus = self.tree.getcorpus()
- busy = wx.BusyInfo(_("Please wait...").decode('utf8'), self)
- wx.SafeYield()
builder = SubBuilder(self, corpus, parametres)
- del busy
if builder.res == wx.ID_OK :
+ busy = wx.BusyInfo(_("Please wait...").decode('utf8'), self)
+ wx.SafeYield()
corpus = builder.doanalyse()
- print corpus.parametres['uuid']
self.history.add(corpus.parametres)
self.tree.OnItemAppend(corpus.parametres)
OpenAnalyse(self, corpus.parametres)
+ del busy
def OpenText(self):
dlg = wx.ProgressDialog("Ouverture...",