diff --git a/wxPython/demo/TreeListCtrl.py b/wxPython/demo/TreeListCtrl.py index 6580c07d5a..c41ab3160d 100644 --- a/wxPython/demo/TreeListCtrl.py +++ b/wxPython/demo/TreeListCtrl.py @@ -82,18 +82,11 @@ class TestPanel(wx.Panel): def OnRightUp(self, evt): - # Convert the position from being relative to the subwindow to - # being relative to the outer treelist window so HitTest will - # have the point it is expecting. pos = evt.GetPosition() - pos = self.tree.GetMainWindow().ClientToScreen(pos) - pos = self.tree.ScreenToClient(pos) item, flags, col = self.tree.HitTest(pos) - if item: print flags, col, self.tree.GetItemText(item, col) - def OnSize(self, evt): self.tree.SetSize(self.GetSize())