X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=ProfList.py;h=94122324bd6bdab8e02c2999bcbcf05778c028e8;hp=c2201717a879b7786920a98aac8af79047ddc4be;hb=fca6f30e3159a44e2a4f053546d1d7df21ad8c6b;hpb=83802e662acde01994fe0bd2bf6978fef90b14f8 diff --git a/ProfList.py b/ProfList.py index c220171..9412232 100644 --- a/ProfList.py +++ b/ProfList.py @@ -518,6 +518,7 @@ class ProfListctrlPanel(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin, listmix.Col 'halo' : 0, 'tmpchi': self.tmpchi, 'fromprof' : True, + 'edgecurved' : True, } act = {} tableau = copymatrix(tableau) @@ -616,11 +617,11 @@ class ProfListctrlPanel(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin, listmix.Col dlg.Update(3, u'concordancier...') ucis_txt, ucestxt = doconcorde(corpus, nuces, self.la, uci = uci) 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)) + dlg.Destroy() + win = message(self, items, u"Segments de texte caractéristiques - Classe %i" % self.cl, (750, 600), uceids = nuces) + #win.SetWindowStyle(wx.STAY_ON_TOP) #win.html = '\n' + '
'.join(['
'.join([ucis_txt[i], '
score : %.2f
' % ntab2[i][0], ucestxt[i]]) for i in range(0,len(ucestxt))]) + '\n' #win.HtmlPage.SetPage(win.html) - dlg.Destroy() win.Show(True) def on_tablex(self, evt): @@ -641,28 +642,6 @@ class ProfListctrlPanel(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin, listmix.Col nbcl = len(title) nbwords = len(words) BarFrame(self.Source.parent, tableout, title, words) -# txt = barplot(tableout, words, title, self.Source.parent.RscriptsPath['Rgraph'], tmpgraph) -# #print 'ATTENTION TEST R' -# #txt = """ -# #sink('/Users/pierre/Desktop/qdfqsdfqsdfqsdf.txt') -# #Sys.getlocale() -# #sink() -# #""" -# tmpscript = tempfile.mktemp(dir=self.Source.parent.TEMPDIR) -# file = open(tmpscript,'w') -# file.write(txt) -# file.close() -# exec_rcode(self.Source.parent.RPath, tmpscript, wait = True) -# w = 100 + (20 * nbwords) + (100 * nbcl) -# h = 100 + (nbwords * 15) -# if w > 1100 : w = 1100 -# if h > 800 : h = 800 -# if h < 450 : h = 450 -# win = MessageImage(self, u"Graphique", size=(w, h)) -# win.addsaveimage(tmpgraph) -# txt = "" % tmpgraph -# win.HtmlPage.SetPage(txt) -# win.Show(True) def onlexdendro(self, evt): if 'corpus' in dir(self.Source): @@ -698,7 +677,7 @@ class ProfListctrlPanel(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin, listmix.Col uci = True ucis_txt, ucestxt = doconcorde(corpus, ucef, ListWord, uci = uci) items = dict([[i, '

'.join([ucis_txt[i], ucestxt[i]])] for i in range(0,len(ucestxt))]) - win = message(self, items, title, (800, 500)) + win = message(self, items, title, (800, 500), uceids = ucef) return win def OnPopupTwo(self, event): @@ -711,13 +690,13 @@ class ProfListctrlPanel(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin, listmix.Col def OnPopupThree(self, event): corpus = self.Source.corpus uces = [classe[i] for classe in corpus.lc for i in range(0,len(classe))] - win = self.make_concord(uces, "Concordancier - UCE classées") + win = self.make_concord(uces, "Concordancier - Segments de texte classés") win.Show(True) def OnPopupFour(self, event): corpus = self.Source.corpus uces = [classe[i] for classe in corpus.lc for i in range(0,len(classe))] + corpus.lc0 - win = self.make_concord(uces, "Concordancier - Toutes les UCE") + win = self.make_concord(uces, "Concordancier - Tous les segments de texte") win.Show(True) def OnPopupFive(self, event):