From: Robin Dunn Date: Tue, 29 Jun 2004 18:03:48 +0000 (+0000) Subject: Don't need to adjust the position for HitTest any longer X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/44b8f8e051af41775c9eaeace6a3be139bcbe729 Don't need to adjust the position for HitTest any longer git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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())