X-Git-Url: http://iramuteq.org/git?a=blobdiff_plain;ds=sidebyside;f=Liste.py;h=1bd0f0acd30ffd834f5c351683ac7c488de80380;hb=3c12716d2973bdb4cda7d49cace225d3502c1a30;hp=737120e2834fe911eec128cc8094d9a121ead908;hpb=54fef96ad151ba25920f3e589b39a83c3f62ae2c;p=iramuteq
diff --git a/Liste.py b/Liste.py
index 737120e..1bd0f0a 100644
--- a/Liste.py
+++ b/Liste.py
@@ -176,9 +176,10 @@ class ListPanel(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin, listmix.ColumnSorte
for forme in lems[word].formes :
rep.append([corpus.getforme(forme).forme, corpus.getforme(forme).freq])
rep.sort(key = itemgetter(1), reverse = True)
- win = message(self, u"Formes associées", (300, 200))
- win.html = '\n' + '
'.join([' : '.join([str(val) for val in forme]) for forme in rep]) + '\n'
- win.HtmlPage.SetPage(win.html)
+ items = dict([[i, '' + '\t:\t'.join([str(val) for val in forme]) + ''] for i, forme in enumerate(rep)])
+ win = message(self, items, _(u"Associated forms").decode('utf8'), (300, 200))
+ #win.html = '\n' + '
'.join([' : '.join([str(val) for val in forme]) for forme in rep]) + '\n'
+ #win.HtmlPage.SetPage(win.html)
win.Show(True)
def OnPopupTwo(self, event):
@@ -187,7 +188,7 @@ class ListPanel(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin, listmix.ColumnSorte
uce_ok = corpus.getlemuces(item)
ucis_txt, ucestxt = doconcorde(corpus, uce_ok, [item])
items = dict([[i, '
'.join([ucis_txt[i], ucestxt[i]])] for i in range(0,len(ucestxt))])
- win = message(self, items, u"Concordancier - %s" % item, (800, 500))
+ win = message(self, items, u"Concordancier - %s" % item, (800, 500), uceids = uce_ok)
#win = message(self, u"Concordancier", (750, 600))
#win.html = ('\n