]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/mac/_controls.py
Remove some cruft
[wxWidgets.git] / wxPython / src / mac / _controls.py
index 1f087881b582fd1784966c86132342d851001a1c..063ba32b2bfee85f56711ca406198888bdc1c300 100644 (file)
@@ -1753,11 +1753,22 @@ class TextCtrl(_core.Control):
         """
         HitTest(Point pt) -> (result, row, col)
 
-        Find the character at position given in pixels. NB: pt is in device
-        coords but is not adjusted for the client area origin nor scrolling
+        Find the row, col coresponding to the character at the point given in
+        pixels. NB: pt is in device coords but is not adjusted for the client
+        area origin nor scrolling.
         """
         return _controls_.TextCtrl_HitTest(*args, **kwargs)
 
+    def HitTestPos(*args, **kwargs):
+        """
+        HitTestPos(Point pt) -> (result, position)
+
+        Find the character position in the text coresponding to the point
+        given in pixels. NB: pt is in device coords but is not adjusted for
+        the client area origin nor scrolling. 
+        """
+        return _controls_.TextCtrl_HitTestPos(*args, **kwargs)
+
     def Copy(*args, **kwargs):
         """Copy(self)"""
         return _controls_.TextCtrl_Copy(*args, **kwargs)