self.cl = cl
self.var_mod = {}
self.them_mod = {}
+ self.ira = wx.GetApp().GetTopWindow()
line1 = profclasse.pop(0)
classen = [line for line in profclasse if line[0] != '*' and line[0] != '*****']
'lem' : self.Source.parametres['lem'],
'tmpchi' : self.tmpchi}
#try :
- self.parent.SimiFromCluster(self.parent, self.Source.corpus, self.la, self.lfreq, self.lchi, self.cl - 1, parametres = parametres, dlg = progressbar(self, 4))
+ self.parent.SimiFromCluster(self.parent, self.Source.corpus, self.la, self.lfreq, self.lchi, self.cl - 1, parametres = parametres, dlg = progressbar(self.ira, 4))
#except :
# print 'not acitve'
'lem' : self.Source.parametres['lem'],
'tmpchi' : self.tmpchi}
- self.parent.SimiFromCluster(self.parent, self.Source.corpus, self.la, self.lfreq, self.lchi, self.cl - 1, parametres = parametres, dlg = progressbar(self, 4))
+ self.parent.SimiFromCluster(self.parent, self.Source.corpus, self.la, self.lfreq, self.lchi, self.cl - 1, parametres = parametres, dlg = progressbar(self.ira, 4))
def on_segments(self,evt) :
dlg = progressbar(self, 2)
if parametres['svg'] == 'TRUE' :
self.imagename = u"image.svg"
else :
- self.imagename = u"iamge.png"
+ self.imagename = u"image.png"
self.HtmlPage = wx.html.HtmlWindow(self, -1)
self.HtmlPage.SetMinSize(size)
if "gtk2" in wx.PlatformInfo:
#License: GNU/GPL
from chemins import ffr, simipath
-#from corpus import Corpus
import os
from analysetxt import AnalyseText
-#from ConfigParser import RawConfigParser
-#from guifunct import getPage, getCorpus
from guifunct import PrepSimi
from functions import indices_simi, progressbar, treat_var_mod, read_list_file, print_liste
-#from tableau import Tableau
-#from tabsimi import DoSimi
from PrintRScript import PrintSimiScript
import wx
from copy import copy
-
import logging
log = logging.getLogger('iramuteq.textsimi')
self.lfreq = lfreq
self.lchi = lchi
parametres['name'] = 'simi_classe_%i' % (numcluster + 1)
- SimiTxt.__init__(self, ira, corpus, parametres, dlg, lemdial = False)
+ dlg.Destroy()
+ SimiTxt.__init__(self, ira, corpus, parametres, dlg=True, lemdial = False)
def preferences(self) :
return self.parametres
del self.parametres['bystar']
dictcol = dict([[i, [act, self.corpus.getlemclustereff(act, self.numcluster)]] for i, act in enumerate(self.actives)])
continu = True
+ #print self.dlg
if self.dlg :
- #self.listet = self.corpus.make_etoiles()
- #self.listet.sort()
+ self.dlg.Destroy()
self.stars = []#copy(self.listet)
self.parametres['stars'] = 0#copy(self.listet)
self.parametres['sfromchi'] = 1
else :
continu = False
if continu :
+ self.dlg = progressbar(self.parent, 3)
self.makefiles()
self.parametres['type'] = 'clustersimitxt'
script = PrintSimiScript(self)