dlg.Destroy()
dial.Destroy()
if nolib == [] :
- #self.pref.set('iramuteq', 'rlibs', True)
+ self.pref.set('iramuteq', 'rlibs', True)
with open(self.ConfigPath['preferences'], 'w') as f :
self.pref.write(f)
return True
parent = self.parent
else :
parent = self
+ try :
+ print '###horrible hack progressbar'
+ maxi = int(maxi)
+ except :
+ maxi = 1
return wx.ProgressDialog("Traitements",
"Veuillez patienter...",
maximum=maxi,
self.dial = CreateTgenDialog(self, dict([[i, [lem, self.corpus.lems[lem].freq]] for i, lem in enumerate(self.corpus.lems.keys())]), tgens = self.Tgen.tgen)
else :
self.dial = CreateTgenDialog(self, dict([[i, [lem, self.corpus.lems[lem].freq]] for i, lem in enumerate(self.corpus.lems.keys())]), tgen = tgen, tgens = self.Tgen.tgen)
+ self.dial.ip._source.selected = dict(zip(self.Tgen.tgen[tgen], self.Tgen.tgen[tgen]))
self.activetgen = tgen
self.dial.Show()
self.dial.Bind(wx.EVT_CLOSE, self.OnDialClose)
self.SimiFromCluster = SimiFromCluster
#langues
gettext.install('iramuteq', os.path.join(AppliPath,'locale'), unicode=True)
+ #langues = ['fr_FR', 'en', 'pt_PT']
+ #for l in langues :
+ # pass
self.presLan_fr = gettext.translation("iramuteq", os.path.join(AppliPath,'locale'), languages=['fr_FR'])
self.presLan_en = gettext.translation("iramuteq", os.path.join(AppliPath,'locale'), languages=['en'])
self.setlangue()
guilangue = self.pref.get('iramuteq', 'guilanguage')
if guilangue == 'french' :
self.presLan_fr.install()
+ elif guilangue == 'portuguese' :
+ self.presLan_pt.install()
else :
self.presLan_en.install()
mylocale = wx.Locale(langues[guilangue])
self.SetItemImage(item, img, CT.TreeItemIcon_Normal)
self.SetItemImage(item, 13, CT.TreeItemIcon_Expanded)
self.SetItemBold(item, bold)
+ self.SelectItem(item)
def AddMatAnalyse(self, parametres, itemParent = None, bold = True) :
uuid = parametres.get('matrix', None)
img = 24
self.SetItemImage(item, img, CT.TreeItemIcon_Normal)
self.SetItemImage(item, 13, CT.TreeItemIcon_Expanded)
- self.SetItemBold(item, bold)
+ self.SetItemBold(item, bold)
+ self.SelectItem(item)
def OnItemAppend(self, item):
if 'corpus_name' in item :
# if i in selections]
for item in selections :
+ print item
del self._source.selected[item]
tokeep = [self._destData[i][0] for i in self._destData if self._destData[i][0] not in selections]
self._destData = dict([[i, [word, '']] for i, word in enumerate(tokeep)])