def Show(self, value = True):
  """Before we show the frame, we need to add the finishing touches:"""
  self.Bind(wx.EVT_BUTTON, lambda event: self.Close(True), wx.Button(self.pane, label = '&Cancel')) # Add a cancel button
  ok = wx.Button(self.pane, label = '&OK') # Add the ok button
  ok.SetDefault() # When the user presses enter, this is the button which gets activated
  self.Bind(wx.EVT_BUTTON, self.onOk, ok) # Bind it
  self.Bind(wx.EVT_BUTTON, self.apply, wx.Button(self.pane, label = '&Apply')) # Apply the configuration changes to the ConfigParser object, but don't close the window
  help = wx.Button(self.pane, label = '&Help')
  if not callable(self.config.helpFunc):
   help.Disable()
  help.Bind(wx.EVT_BUTTON, self.config.helpFunc) # Add a help button
  return super(ConfFrame, self).Show(value)
Before we show the frame, we need to add the finishing touches: