title: wxPython .SetFocus() on ID
body: <p>I'm just wondering if there is a way of setting the focus of say a wx.TextCtrl() based on its ID rather than its name.</p>
  
  <p>Usually you would do something like...</p>
  
  <pre><code>text = wx.TextCtrl(self, 100, '')
  text.SetFocus()
  </code></pre>
  
  <p>and then the focus is set on text. However I'm going to have an undetermined amount of wx.TextCtrls and I'll have a loop to make them, all with different IDs.  I'm wondering if their is a way of doing it like this?</p>
  
  <pre><code>'id#'.SetFocus() #Set focus to TextCtrl with id = id#
  </code></pre>
  
  <p>I see a way of doing it with dictionaries, but I'm assuming there is a better way of doing this.</p>
  
  <p>Thanks,</p>