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 )
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 ):
self.dial.Show()
event.Skip()
+ def OnCompute(self, evt):
+ ira = wx.GetApp().GetTopWindow()
+ ira.tree.OnTgenCompute(evt)
+
def OnOK(self, evt):
self.Destroy()