108 italic = font.italic() |
108 italic = font.italic() |
109 underline = font.underline() |
109 underline = font.underline() |
110 for style in rangeLow + rangeHigh: |
110 for style in rangeLow + rangeHigh: |
111 self.SendScintilla(QsciScintilla.SCI_STYLESETFONT, style, f) |
111 self.SendScintilla(QsciScintilla.SCI_STYLESETFONT, style, f) |
112 self.SendScintilla(QsciScintilla.SCI_STYLESETSIZE, style, ps) |
112 self.SendScintilla(QsciScintilla.SCI_STYLESETSIZE, style, ps) |
113 self.SendScintilla(QsciScintilla.SCI_STYLESETWEIGHT, style, weight); |
113 self.SendScintilla(QsciScintilla.SCI_STYLESETWEIGHT, style, weight) |
114 self.SendScintilla(QsciScintilla.SCI_STYLESETITALIC, style, italic); |
114 self.SendScintilla(QsciScintilla.SCI_STYLESETITALIC, style, italic) |
115 self.SendScintilla(QsciScintilla.SCI_STYLESETUNDERLINE, style, underline); |
115 self.SendScintilla(QsciScintilla.SCI_STYLESETUNDERLINE, style, underline) |
116 |
116 |
117 def linesOnScreen(self): |
117 def linesOnScreen(self): |
118 """ |
118 """ |
119 Public method to get the amount of visible lines. |
119 Public method to get the amount of visible lines. |
120 |
120 |