QScintilla/QsciScintillaCompat.py

changeset 6188
5a6ae3be31e6
parent 6059
8f7c66c53c27
child 6285
045dc4c38701
equal deleted inserted replaced
6187:2cc7e3629784 6188:5a6ae3be31e6
1537 @return absolute position in the editor (integer) 1537 @return absolute position in the editor (integer)
1538 """ 1538 """
1539 pos = self.SendScintilla(QsciScintilla.SCI_POSITIONFROMLINE, line) 1539 pos = self.SendScintilla(QsciScintilla.SCI_POSITIONFROMLINE, line)
1540 1540
1541 # Allow for multi-byte characters 1541 # Allow for multi-byte characters
1542 for i in range(index): 1542 for _ in range(index):
1543 pos = self.positionAfter(pos) 1543 pos = self.positionAfter(pos)
1544 1544
1545 return pos 1545 return pos
1546 1546
1547 elif QSCINTILLA_VERSION() >= 0x020700: 1547 elif QSCINTILLA_VERSION() >= 0x020700:

eric ide

mercurial