From 372c8e0f417eec05e526c019889ea11a4fabac49 Mon Sep 17 00:00:00 2001 From: Pierre Ratinaud Date: Wed, 10 Sep 2014 10:25:41 +0200 Subject: [PATCH] bis --- ProfList.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ProfList.py b/ProfList.py index 09ba0b4..7b593c6 100644 --- a/ProfList.py +++ b/ProfList.py @@ -599,10 +599,9 @@ class ProfListctrlPanel(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin, listmix.Col ntab2.sort(reverse = True) ntab2 = ntab2[:limite] nuces = [val[1] for val in ntab2] - orderuce = [[uce, i] for i, uce in enumerate(nuces)] dlg.Update(3, u'concordancier...') ucis_txt, ucestxt = doconcorde(corpus, nuces, self.la, uci = uci) - items = dict([[uce[1], '
'.join([ucis_txt[uce[1]], '
score : %.2f

' % ntab2[uce[1]][0], ucestxt[uce[1]]])] for uce in orderuce]) + items = dict([[i, '
'.join([ucis_txt[i], '
score : %.2f

' % ntab2[i][0], ucestxt[i]])] for i, uce in enumerate(nuces)]) dlg.Update(4, u'texte...') win = message(self, items, u"Segments de texte caractéristiques - Classe %i" % self.cl, (750, 600)) #win.html = '\n' + '
'.join(['
'.join([ucis_txt[i], '
score : %.2f
' % ntab2[i][0], ucestxt[i]]) for i in range(0,len(ucestxt))]) + '\n' -- 2.7.4