QScintilla/QsciScintillaCompat.py

branch
Py2 comp.
changeset 2538
b2642e7a4c18
parent 2525
8b507a9a2d40
child 2677
3d4277929fb3
equal deleted inserted replaced
2533:8fb5922867f2 2538:b2642e7a4c18
114 italic = font.italic() 114 italic = font.italic()
115 underline = font.underline() 115 underline = font.underline()
116 for style in rangeLow + rangeHigh: 116 for style in rangeLow + rangeHigh:
117 self.SendScintilla(QsciScintilla.SCI_STYLESETFONT, style, f) 117 self.SendScintilla(QsciScintilla.SCI_STYLESETFONT, style, f)
118 self.SendScintilla(QsciScintilla.SCI_STYLESETSIZE, style, ps) 118 self.SendScintilla(QsciScintilla.SCI_STYLESETSIZE, style, ps)
119 self.SendScintilla(QsciScintilla.SCI_STYLESETWEIGHT, style, weight); 119 self.SendScintilla(QsciScintilla.SCI_STYLESETWEIGHT, style, weight)
120 self.SendScintilla(QsciScintilla.SCI_STYLESETITALIC, style, italic); 120 self.SendScintilla(QsciScintilla.SCI_STYLESETITALIC, style, italic)
121 self.SendScintilla(QsciScintilla.SCI_STYLESETUNDERLINE, style, underline); 121 self.SendScintilla(QsciScintilla.SCI_STYLESETUNDERLINE, style, underline)
122 122
123 def linesOnScreen(self): 123 def linesOnScreen(self):
124 """ 124 """
125 Public method to get the amount of visible lines. 125 Public method to get the amount of visible lines.
126 126

eric ide

mercurial