X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=KeyFrame.py;h=20cb046c42594bb72ef51d330c3bae5b27793cfa;hp=9856a4f4fffaa28efbe62efa241694344fe41d93;hb=097e7017a8f1c597573e7baf9d23553b274eabd1;hpb=d83be48ff65bce301aad86f435be6159ad26d0dc diff --git a/KeyFrame.py b/KeyFrame.py index 9856a4f..20cb046 100755 --- a/KeyFrame.py +++ b/KeyFrame.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- #Author: Pierre Ratinaud #Copyright (c) 2008 Pierre Ratinaud -#Lisense: GNU/GPL +#License: GNU/GPL import wx from functions import sortedby, DoConf @@ -43,7 +43,7 @@ class AlcOptFrame(wx.Dialog): 'nr' : [wx.NewId(),wx.NewId(),u"Formes non reconnues"], } self.parent=parent - self.keys=self.parent.parent.keys + self.keys=self.parent.keys self.listlabel=[] self.listspin=[] self.listbutton=[] @@ -73,7 +73,7 @@ class AlcOptFrame(wx.Dialog): #self.Bind(wx.EVT_BUTTON, self.OnApply, self.button_val) - self.dico=self.parent.parent.parent.lexique#'dictionnaires/lexique.txt') + self.dico=self.parent.parent.lexique#'dictionnaires/lexique.txt') self.__set_properties() self.__do_layout() @@ -118,13 +118,15 @@ class AlcOptFrame(wx.Dialog): def CreateList(self,type): if type=='ver_sup' or type=='ver': - liste=[descr[0] for item,descr in self.dico.iteritems() if descr[1]==type] + #liste=[descr[0] for item,descr in self.dico.iteritems() if descr[1]==type] + liste = [forme for forme in self.corpus.formes if self.corpus.formes[forme].gram==type] liste=list(set(liste)) else: - liste=[item for item,descr in self.dico.iteritems() if descr[1]==type] + #liste=[item for item,descr in self.dico.iteritems() if descr[1]==type] + liste = [forme for forme in self.corpus.formes if self.corpus.formes[forme].gram==type] liste.sort() txt=('\n').join(liste) - ListViewFrame=ListView(self.parent.parent) + ListViewFrame=ListView(self.parent) ListViewFrame.text_ctrl_1.WriteText(txt) ListViewFrame.text_ctrl_1.SetSelection(0,0) ListViewFrame.text_ctrl_1.SetInsertionPoint(0)