From 9807dd4ff12bb4206359404461c7170361e35d67 Mon Sep 17 00:00:00 2001 From: Pierre Ratinaud Date: Thu, 18 Sep 2014 21:29:13 +0200 Subject: [PATCH] ... --- guifunct.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/guifunct.py b/guifunct.py index 15dc08d..a98f6e1 100644 --- a/guifunct.py +++ b/guifunct.py @@ -1105,6 +1105,8 @@ class TGenFrame ( wx.Frame ): self.but_edit = wx.Button( self, wx.ID_ANY, u"Edit", wx.DefaultPosition, wx.DefaultSize, 0 ) fgSizer1.Add( self.but_edit, 1, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) + self.but_compute = wx.Button( self, wx.ID_ANY, u"Compute", wx.DefaultPosition, wx.DefaultSize, 0 ) + fgSizer1.Add( self.but_compute, 1, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) bSizer1.Add( fgSizer1, 1, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) @@ -1128,6 +1130,7 @@ class TGenFrame ( wx.Frame ): self.but_new.Bind( wx.EVT_BUTTON, self.OnNewTgen ) self.but_del.Bind( wx.EVT_BUTTON, self.OnDeleteTgen ) self.but_edit.Bind( wx.EVT_BUTTON, self.OnEditTgen ) + self.but_compute.Bind(wx.EVT_BUTTON, self.OnCompute) self.m_sdbSizer2OK.Bind( wx.EVT_BUTTON, self.OnOK ) def __del__( self ): @@ -1173,6 +1176,10 @@ class TGenFrame ( wx.Frame ): self.dial.Show() event.Skip() + def OnCompute(self, evt): + ira = wx.GetApp().GetTopWindow() + ira.tree.OnTgenCompute(evt) + def OnOK(self, evt): self.Destroy() -- 2.7.4