src/eric7/QScintilla/QsciScintillaCompat.py

branch
eric7
changeset 10497
0d7f1c8cd219
parent 10439
21c28b0f9e41
child 10876
ec224611090e
equal deleted inserted replaced
10496:f9925e08dbce 10497:0d7f1c8cd219
1937 def lineIndexFromPoint(self, point): 1937 def lineIndexFromPoint(self, point):
1938 """ 1938 """
1939 Public method to convert a point to line and index. 1939 Public method to convert a point to line and index.
1940 1940
1941 @param point point to be converted 1941 @param point point to be converted
1942 @type QPoin 1942 @type QPoint
1943 @return tuple containing the line number and index number 1943 @return tuple containing the line number and index number
1944 @rtype tuple of (int, int) 1944 @rtype tuple of (int, int)
1945 """ 1945 """
1946 pos = self.positionFromPoint(point) 1946 pos = self.positionFromPoint(point)
1947 return self.lineIndexFromPosition(pos) 1947 return self.lineIndexFromPosition(pos)

eric ide

mercurial