X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=textwordcloud.py;h=07b65edb4ed62beb3161705bbf761b5766a945c7;hp=bc875bc0449d88888dfcbc29d5ba7eada2226710;hb=42499e5db4394973bd0761d40ea09e515925ed4b;hpb=2ffa9388c45dce689bb45c1cf6c7ad81d2636409 diff --git a/textwordcloud.py b/textwordcloud.py index bc875bc..07b65ed 100644 --- a/textwordcloud.py +++ b/textwordcloud.py @@ -2,17 +2,17 @@ # -*- coding: utf-8 -*- #Author: Pierre Ratinaud #Copyright (c) 2008-2009 Pierre Ratinaud -#Lisense: GNU/GPL +#License: GNU/GPL from analysetxt import AnalyseText from guifunct import getPage, getCorpus, SelectColumn -from ConfigParser import RawConfigParser -from functions import sortedby, progressbar, CreateIraFile, exec_rcode, check_Rresult, MessageImage +#from ConfigParser import RawConfigParser +from functions import sortedby, progressbar from dialog import StatDialog, PrefWordCloud from PrintRScript import WordCloudRScript #from ttparser import * import tempfile -from time import sleep +#from time import sleep import wx import os import logging @@ -25,6 +25,7 @@ class WordCloud(AnalyseText): self.parametres['type'] = 'wordcloud' #FIXME limit = 3 + self.dlg.Destroy() res = self.make_option() if res == wx.ID_OK : if self.parametres['mode'] == 2 : @@ -36,6 +37,7 @@ class WordCloud(AnalyseText): self.actives = self.corpus.make_actives_limit(limit, 2) dictcol = dict([[i, [act, self.corpus.getlemeff(act)]] for i, act in enumerate(self.actives)]) SelectColumn(self.ira, dictcol, self.actives, self.pathout['selected.csv'], dlg = True) + self.dlg = progressbar(self.ira, 2) self.make_wordcloud() script = WordCloudRScript(self) script.make_script()