From: pierre Date: Wed, 4 Sep 2024 17:12:02 +0000 (+0200) Subject: ... X-Git-Url: http://iramuteq.org/git?a=commitdiff_plain;h=dfb2591e6b5cf66ea20121f996db331f36ee906b;p=iramuteq ... --- diff --git a/analysetxt.py b/analysetxt.py index 7bbd053..f11a596 100755 --- a/analysetxt.py +++ b/analysetxt.py @@ -48,7 +48,6 @@ class AnalyseText : self.parametres = self.make_config(parametres) if self.parametres is not None: self.keys = DoConf(self.ira.ConfigPath['key']).getoptions() - print(self.keys) gramact = [k for k in self.keys if self.keys[k] == 1] gramsup = [k for k in self.keys if self.keys[k] == 2] self.parametres['pathout'] = self.pathout.mkdirout() diff --git a/corpus.py b/corpus.py index 2568edb..58944e8 100644 --- a/corpus.py +++ b/corpus.py @@ -406,7 +406,6 @@ class Corpus : else : grams = {gram :''} tokeep = [lem for lem in self.lems if self.lems[lem].freq >= mineff and self.lems[lem].act in grams] - print(tokeep) etuces = [[] for et in etoiles] for uci in self.ucis : get = list(set(uci.etoiles).intersection(etoiles)) diff --git a/listlex.py b/listlex.py index 58f2a0a..bee30db 100644 --- a/listlex.py +++ b/listlex.py @@ -85,10 +85,16 @@ class ListForSpec(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin, listmix.ColumnSor i+=1 self.SetColumnWidth(0, 250) for i in range(0,len(self.etoiles)): - size = self.checkcolumnwidth(len(self.etoiles[i]) * 20) - if size < 200 : - size = 200 - self.SetColumnWidth(i + 1, size) + #size = self.checkcolumnwidth(len(self.etoiles[i]) * 20) + #if size < 200 : + # size = 200 + #self.SetColumnWidth(i + 1, size) + self.SetColumnWidth(i+1, wx.LIST_AUTOSIZE_USEHEADER) + size = self.GetColumnWidth(i+1) + if size < 80 : + self.SetColumnWidth(i+1, 80) + if size > 300 : + self.SetColumnWidth(i+1, 300) self.itemDataMap = self.dlist self.itemIndexMap = list(self.dlist.keys()) self.SetItemCount(len(self.dlist))