X-Git-Url: http://iramuteq.org/git?a=blobdiff_plain;f=layout.py;h=c671a541d51d04a111264352e166e3d627937746;hb=d0bb4e6888ca98ba7177457d65ddce796fd2b298;hp=6b186e63e4e4aec6076de7adb92cdb407b65bc56;hpb=585be25e4c896f0209c6f87c4ccf05cf395faec0;p=iramuteq diff --git a/layout.py b/layout.py index 6b186e6..c671a54 100644 --- a/layout.py +++ b/layout.py @@ -46,6 +46,7 @@ from webexport import WebExport from corpus import Corpus from sheet import MySheet from graph_to_json import GraphToJson +from listlex2 import LexPanel import langue @@ -407,7 +408,7 @@ class OpenCHDS(): else : corpname = self.corpus.parametres['matrix_name'] if os.path.exists(self.pathout['analyse.db']) : - self.corpus.read_tableau(self.pathout['analyse']) + self.corpus.read_tableau(self.pathout['analyse.db']) clnb = parametres['clnb'] dlg = progressbar(self, maxi = 4 + clnb) self.clnb = clnb @@ -751,15 +752,22 @@ class dolexlayout : #sash = SashList(ira.nb) self.TabStat = aui.AuiNotebook(ira.nb, -1, wx.DefaultPosition) self.TabStat.parametres = parametres + #self.ListPan = LexPanel(self, ira, self.DictSpec, self.etoiles) self.ListPan = ListForSpec(ira, self, self.DictSpec, self.etoiles) + self.ListPan.pathout = self.pathout if os.path.exists(self.pathout['banalites.csv']) : self.listban = ListForSpec(ira, self, self.dictban, ['eff'] + self.etoiles, usefirst = True) #self.ListPan2 = ListForSpec(sash.rightwin1, self, self.DictSpec, first) self.ListPant = ListForSpec(ira, self, self.DictType, self.etoiles) + self.ListPant.pathout = self.pathout self.ListPanEff = ListForSpec(ira, self, self.DictEff, self.etoiles) + self.ListPanEff.pathout = self.pathout self.ListPanEffType = ListForSpec(ira, self, self.DictEffType, self.etoiles) + self.ListPanEffType.pathout = self.pathout self.ListPanEffRelForme = ListForSpec(ira, self, self.DictEffRelForme, self.etoiles) + self.ListPanEffRelForme.pathout = self.pathout self.ListPanEffRelType = ListForSpec(ira, self, self.DictEffRelType, self.etoiles) + self.ListPanEffRelType.pathout = self.pathout self.TabStat.AddPage(self.ListPan, _('Forms')) if os.path.exists(self.pathout['banalites.csv']) : self.TabStat.AddPage(self.listban, _('Banal forms')) @@ -781,6 +789,7 @@ class dolexlayout : self.ira = ira self.TabStat.corpus = self.corpus self.TabStat.etoiles = self.etoiles + self.TabStat.pathout = self.pathout if os.path.exists(os.path.join(self.parametres['pathout'], 'tgenspec.csv')) : self.parametres['tgenspec'] = os.path.join(self.parametres['pathout'], 'tgenspec.csv') TgenLayout(self.TabStat) @@ -1054,7 +1063,6 @@ class OpenCorpus : ira.nb.SetSelection(ira.nb.GetPageCount() - 1) ira.ShowAPane("Tab_content") - class MatLayout : def __init__(self, ira, matrix): @@ -1347,7 +1355,7 @@ class DefaultMatLayout : self.tableau = tableau self.parametres = parametres if os.path.exists(self.pathout['analyse.db']) : - self.tableau.read_tableau(self.pathout['analyse']) + self.tableau.read_tableau(self.pathout['analyse.db']) self.dolayout() self.ira.nb.SetSelection(self.ira.nb.GetPageCount() - 1) self.ira.ShowAPane("Tab_content") @@ -1362,7 +1370,8 @@ class FreqLayout(DefaultMatLayout) : self.tab = wx.html.HtmlWindow(self.ira.nb, -1) #self.tab = wx.html2.WebView.New(self) res = normpath_win32(self.pathout['resultats.html']).replace('\\','/') - self.tab.LoadPage(res) + #self.tab.LoadPage(res) + self.tab.LoadFile(res) #self.tab.LoadURL(res) self.tab.parametres = self.parametres self.ira.nb.AddPage(self.tab, ' - '.join([_("Frequency"), self.parametres['name']])) @@ -1375,7 +1384,7 @@ class Chi2Layout(DefaultMatLayout) : if "gtk2" in wx.PlatformInfo: self.tab.SetStandardFonts() res = normpath_win32(self.pathout['resultats-chi2.html']).replace('\\','/') - self.tab.LoadPage(res) + self.tab.LoadFile(res) self.tab.parametres = self.parametres self.ira.nb.AddPage(self.tab, ' - '.join(["Chi2", self.parametres['name']])) #self.ira.nb.SetSelection(self.ira.nb.GetPageCount() - 1) @@ -1402,7 +1411,7 @@ class ProtoLayout(DefaultMatLayout) : class CateLayout(DefaultMatLayout) : def dolayout(self) : - self.tableau.read_tableau(self.pathout['analyse']) + self.tableau.read_tableau(self.pathout['analyse.db']) TabCate = ElCategorizator(self.ira.nb, self.pathout, self.tableau) self.ira.nb.AddPage(TabCate, ' - '.join([_('ElCaTeGoRiZaToR'), self.parametres['name']]))