title: wxpython, passing data to a function in self.Bind
body: <p>I'm having trouble finding the answer to this to know if its possible. Ive looked in the wxpython demo and done some googling to no avail.</p>
  
  <p>how do I pass some sort of data to the function call when I am binding actions?</p>
  
  <p>for example</p>
  
  <p>self.Bind(wx.EVT_MENU, self.DoThis, item1)</p>
  
  <p>self.Bind(wx.EVT_MENU, self.DoThis, item2)</p>
  
  <p>I have a set of menu options that I want to be handled by the same function (DoThis), but need to pass that function some data because its output depends on which menu item was selected.</p>
  
  <p>I know I can just bind each menu item to a different function so could just replicate it a bunch of times, but for the sake of clarity and length of code, it would be much simpler to handle it all in the same function, because I have about a dozen menu items. Is this even possible? Thanks</p>