title: wxpython wx.TreeCtrl, which subitem of the tree fires the event wx.EVT_TREE_ITEM_ACTIVATED?
body: <p>I'm making a tree ctrl and need to figure out where the double click came from.</p>
  
  <p>Code:</p>
  
  <pre><code>def _initElementsOfTreePanel(self, panel):
      tree = wx.TreeCtrl(panel, -1, wx.Point(0, 0), wx.DefaultSize, wx.NO_BORDER | wx.TR_DEFAULT_STYLE)
  
      root = tree.AddRoot("Elements")
      items = []
      imglist = wx.ImageList(16, 16, True, 2)
      imglist.Add(wx.ArtProvider_GetBitmap(wx.ART_FOLDER, wx.ART_OTHER, wx.Size(16, 16)))
      imglist.Add(wx.ArtProvider_GetBitmap(wx.ART_NORMAL_FILE, wx.ART_OTHER, wx.Size(16, 16)))
      tree.AssignImageList(imglist)
  
  # #        Create the element Tree (the left hand side panel). Places in it all the found functions 
      def appendSubitems(item, func_list, tree):
          print item
          for func in func_list:
              itemid = tree.AppendItem(item, func.__name__, 1)
              print"GUIFrame._initElementsofTreePanel, func:",func.__name__,"id:",itemid
  
  #        print "TreeItemId:",
      appendSubitems(tree.AppendItem(root, "Input functions", 0), self._elemdisco.input_functions, tree) 
      appendSubitems(tree.AppendItem(root, "Processing functions", 0), self._elemdisco.processing_functions, tree)
      appendSubitems(tree.AppendItem(root, "Output functions", 0), self._elemdisco.output_functions, tree)
      appendSubitems(tree.AppendItem(root, "Other functions", 0), self._elemdisco.other_functions, tree)
  
  
      tree.ExpandAll()
      self.Bind(wx.EVT_TREE_ITEM_ACTIVATED, self._addNodeToSchema, self.treePanel.tree)
  
  def _addNodeToSchema(self,event):
      print event.GetItem()
  </code></pre>
  
  <p>Now the output shows that no matter what node double click on, it recognizes the same item to have fired the event. And it corresponds to no ID of any item that i know i've added, and no ID of the root.</p>
  
  <p>Anyone know how I can get a reference to the object in the tree? I basically want to get its name, but this API won't let me :P</p>
  
  <p>[EDIT]:Solver, but i think this is a framework bug. There's no reason why the event should return the same TreeItemID regardless of where the double click  actually occurs.</p>