X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=Liste.py;h=1bd0f0acd30ffd834f5c351683ac7c488de80380;hp=85abc6957ceb7dbc860b1e3e48025a92c61aec6f;hb=fc1209a72127935ef90645314dff26bb6fd2a1d4;hpb=5d8c9f5cd6399fd4a7192b655b4aa0a7923d11b6 diff --git a/Liste.py b/Liste.py index 85abc69..1bd0f0a 100644 --- a/Liste.py +++ b/Liste.py @@ -174,11 +174,12 @@ class ListPanel(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin, listmix.ColumnSorte lems = corpus.getlems() rep = [] for forme in lems[word].formes : - rep.append([corpus.getforme(forme).forme, corpus.getforme(forme).freq]) + 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): @@ -186,7 +187,9 @@ class ListPanel(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin, listmix.ColumnSorte item = self.getColumnText(self.GetFirstSelected(), 0) uce_ok = corpus.getlemuces(item) ucis_txt, ucestxt = doconcorde(corpus, uce_ok, [item]) - win = message(self, u"Concordancier", (750, 600)) - win.html = ('\n

%s

' % item) + '
'.join(['
'.join([ucis_txt[i], ucestxt[i]]) for i in range(0,len(ucestxt))]) + '\n' - win.HtmlPage.SetPage(win.html) + 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), uceids = uce_ok) + #win = message(self, u"Concordancier", (750, 600)) + #win.html = ('\n

%s

' % item) + '
'.join(['
'.join([ucis_txt[i], ucestxt[i]]) for i in range(0,len(ucestxt))]) + '\n' + #win.HtmlPage.SetPage(win.html) win.Show(True)