X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=profile_segment.py;h=1eeee9c16a973680b6b86e9f6046452b36b95601;hp=639b660b44b150622442e7ed45d91a71c83efdfc;hb=5d84083b41b807307732adb78e1be7fd3e3ff004;hpb=5d8a0a0e99d9075adc28f2525fe0aba8e14c2b0a diff --git a/profile_segment.py b/profile_segment.py index 639b660..1eeee9c 100644 --- a/profile_segment.py +++ b/profile_segment.py @@ -6,7 +6,12 @@ import tempfile from ProfList import * -import agw.aui as aui +import wx +if wx.__version__ >= '2.11' : +#import agw.aui as aui + import wx.lib.agw.aui as aui +else : + import aui from functions import exec_rcode, check_Rresult, ReadProfileAsDico, ReadList from listlex import * from dialog import PrefSegProf, PrefProfTypes @@ -64,7 +69,7 @@ class ProfileSegment() : def do_layout(self) : SelectTab = self.parent.nb.GetSelection() page = self.parent.nb.GetPage(SelectTab).TabChdSim - prof_seg = ReadProfileAsDico(self, self.dictpathout['prof_seg'], True, self.parent.syscoding) + prof_seg = ReadProfileAsDico(self.dictpathout['prof_seg'], True, self.parent.syscoding) prof_seg_nb = aui.AuiNotebook(self.parent, -1, wx.DefaultPosition) for i in range(0,len(self.corpus.lc)) : ntab = ProfListctrlPanel(self.parent, self, prof_seg[str(i + 1)], False, i + 1) @@ -139,7 +144,7 @@ class ProfilType() : page = self.parent.nb.GetPage(SelectTab).TabChdSim prof_seg_nb = aui.AuiNotebook(self.parent, -1, wx.DefaultPosition) if alceste : - prof_seg = ReadProfileAsDico(self, self.outprof, True) + prof_seg = ReadProfileAsDico(self.outprof, True) for i in range(0,len(self.corpus.lc)) : ntab = ProfListctrlPanel(self.parent, self, prof_seg[str(i + 1)], False, i + 1) prof_seg_nb.AddPage(ntab, 'classe %i' % (i + 1))