title: wxPython using variable to reference an object
body: <p>I am trying to pass the name of an object into a function so that I can manipulate it from within a function. I have about 14 radio buttons that I want to change depending on what is clicked. Using the function cuts down on code reuse.
  However the object tries to use the name of the variable as the object name, not the string contained within.</p>
  <p>Is it possible to use this string to refer to the object name compared to the string itself?</p>
  <pre><code>    self.myObject.GetValue():
      self.writeLine('hello','myObject')
  
      self.myObject2.GetValue():
      self.writeLine('test','myObject2')
  
      def writeLine(self,str, objName):
          print str
          self.objName.Enable(False)
          self.objName.SetValue(False)
  
  
     self.objName.Enable(False)
  AttributeError: 'myProg' object has no attribute 'objName'
  </code></pre>