X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=KeyFrame.py;h=4ec826c5ac03121c18f96dbf61794a2407453dc1;hp=ffa625b36a3e6c9a05975089477b121de38d3e7a;hb=159a6ea7066894985bd88b0bfba518c317870405;hpb=ea81472844df73875a9b2ba9122d487361fd88ac diff --git a/KeyFrame.py b/KeyFrame.py index ffa625b..4ec826c 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=[] @@ -66,14 +66,14 @@ class AlcOptFrame(wx.Dialog): self.listcle.append(cle) - self.button_val = wx.Button(self,wx.ID_APPLY) + self.button_val = wx.Button(self, wx.ID_OK) for button in self.listbutton : self.Bind(wx.EVT_BUTTON,self.OnShowList,button) - self.Bind(wx.EVT_BUTTON, self.OnApply, self.button_val) + #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() @@ -131,13 +131,6 @@ class AlcOptFrame(wx.Dialog): ListViewFrame.CenterOnParent() val=ListViewFrame.ShowModal() - def OnApply(self,evt): - for i in range(0,len(self.listlabel)): - self.keys[self.listcle[i]] = self.listspin[i].GetValue() - DoConf().makeoptions(['KEY'], [self.keys], outfile = self.parent.parent.ira.ConfigPath['key']) - self.Destroy() - - class ListView(wx.Dialog): def __init__(self, parent): wx.Dialog.__init__(self, parent, size=wx.Size(200, 400),style=wx.DEFAULT_DIALOG_STYLE)