eric6/QScintilla/QsciScintillaCompat.py

changeset 7949
17c0a4ec3cf0
parent 7923
91e843545d9a
child 7954
d32319ede131
equal deleted inserted replaced
7948:6cbd0c086887 7949:17c0a4ec3cf0
213 Public method to get the style at the current position. 213 Public method to get the style at the current position.
214 214
215 @return style at the current position (integer) 215 @return style at the current position (integer)
216 """ 216 """
217 return self.styleAt(self.currentPosition()) 217 return self.styleAt(self.currentPosition())
218
219 def getSubStyleRange(self, styleNr):
220 """
221 Public method to get the sub style range for given style number.
222
223 @param styleNr Number of the base style
224 @type int
225 @return start index of the sub style and their count
226 @rtype int, int
227 """
228 start = self.SendScintilla(QsciScintilla.SCI_GETSUBSTYLESSTART,
229 styleNr)
230 count = self.SendScintilla(QsciScintilla.SCI_GETSUBSTYLESLENGTH,
231 styleNr)
232 return start, count
218 233
219 def getEndStyled(self): 234 def getEndStyled(self):
220 """ 235 """
221 Public method to get the last styled position. 236 Public method to get the last styled position.
222 237

eric ide

mercurial