title: How to bind items in a wx.Choice component to functions?
body: <p>I am trying to use wx.Choice component to archieve a simple application.</p>
  
  <p>The idea is, a number of items are listed in the wx.Choice, and each of them will trigger an unique function.</p>
  
  <p>My first version of code was:</p>
  
  <pre><code>class MainFrame(wx.Frame):
  
      def __init__(self):
          wx.Frame.__init__(self, None, 0, 'wxPython pull-down choice', size = (400, 300))
          panel_select_model= wx.Panel(self, -1)
          model_list = ['Test_A', 'Test_B']
          self._model_type = None
  
          self._stat_tex = wx.StaticText(panel_select_model, 1, "Select Model Type:", (15, 20))
          self._droplist = wx.Choice(panel_select_model, 2, (150, 18), choices = model_list)
  
          """ Bind A Panel """
          self._droplist.SetSelection(0)
          self._droplist.Bind(wx.EVT_CHOICE, self.Test_A_click)
  </code></pre>
  
  <p>But it turns out that the two items in the dropdown list will trigger the same function (I expect that the <code>Test_A</code> will trigger that function and <code>Test_B</code> simply do nothing). So I try to bind <code>Test_B</code> to another method <code>Test_B_click</code></p>
  
  <pre><code>class MainFrame(wx.Frame):
  
      def __init__(self):
          wx.Frame.__init__(self, None, 0, 'wxPython pull-down choice', size = (400, 300))
          panel_select_model= wx.Panel(self, -1)
          model_list = ['Test_A', 'Test_B']
          self._model_type = None
  
          self._stat_tex = wx.StaticText(panel_select_model, 1, "Select Model Type:", (15, 20))
          self._droplist = wx.Choice(panel_select_model, 2, (150, 18), choices = model_list)
  
          """ Bind A Panel """
          self._droplist.SetSelection(0)
          self._droplist.Bind(wx.EVT_CHOICE, self.Test_A_click)
  
          """ Bind B Panel """
          self._droplist.SetSelection(1)
          self._droplist.Bind(wx.EVT_CHOICE, self.Test_B_click)
  </code></pre>
  
  <p>The above code display a main frame, a drop list in it and two items in the drop list. However, when I click either of the two items, no function is triggered anymore.</p>
  
  <p>So, how can I archieve my goal: <strong>Bind different functions to each of the items in a wx.Choice component, and make them trigger functions correctly.</strong></p>
  
  <p>Thanks.</p>