QScintilla/QsciScintillaCompat.py

changeset 551
e1074b63ff08
parent 510
84257fe1c8b4
child 791
9ec2ac20e54e
equal deleted inserted replaced
550:22b951013193 551:e1074b63ff08
98 rangeHigh = list(range(self.STYLE_LASTPREDEFINED + 1, 98 rangeHigh = list(range(self.STYLE_LASTPREDEFINED + 1,
99 self.STYLE_MAX + 1)) 99 self.STYLE_MAX + 1))
100 except AttributeError: 100 except AttributeError:
101 rangeHigh = list(range(40, 128)) 101 rangeHigh = list(range(40, 128))
102 102
103 f = font.family() 103 f = font.family().encode()
104 ps = font.pointSize() 104 ps = font.pointSize()
105 for style in rangeLow + rangeHigh: 105 for style in rangeLow + rangeHigh:
106 self.SendScintilla(QsciScintilla.SCI_STYLESETFONT, style, f) 106 self.SendScintilla(QsciScintilla.SCI_STYLESETFONT, style, f)
107 self.SendScintilla(QsciScintilla.SCI_STYLESETSIZE, style, ps) 107 self.SendScintilla(QsciScintilla.SCI_STYLESETSIZE, style, ps)
108 108

eric ide

mercurial