title: wxPython: How the radio buttons can remember my choice when I close the frame
body: <p>Hello I have one main frame and a button which when its pressed a second frame opens. The second frame have 6 radio buttons. My question is when I choose a radiobutton different from the allready selected and close the frame and when I open it again (without close the entire program) why is selected the first one and how can I keep my new selection? </p>
  
  <p>Here is some part of the seconds frame code:</p>
  
  <pre><code>    self.radio1 = wx.RadioButton(self, label="1 sec",pos=(35,35),)
      self.Bind(wx.EVT_RADIOBUTTON, self.SetLab1, id=self.radio1.GetId())
  
      self.radio2 = wx.RadioButton(self, label="2 sec",pos=(35,55))
      self.Bind(wx.EVT_RADIOBUTTON, self.SetLab2, id=self.radio2.GetId())
  
      self.radio3 = wx.RadioButton(self, label="4 sec",pos=(35,75))
      self.Bind(wx.EVT_RADIOBUTTON, self.SetLab3, id=self.radio3.GetId())
                                    .
                                    .
                                    .
  
      self.button0=AB.AquaButton(self,label="Exit",pos=(115,142),size=(90,35))
      self.Bind(wx.EVT_BUTTON, self.OnButton0, self.button0)
  
  def OnButton0(self, event):
      self.Close()
  
  def SetLab1(self,event):
      global Delay
      Delay = 'A2/'
  
  def SetLab2(self,event):
      global Delay
      Delay = 'A3/'
  
  def SetLab3(self,event):
      global Delay
      Delay = 'A4/'
  </code></pre>