QScintilla/QsciScintillaCompat.py

branch
5_0_x
changeset 552
bc2948d7c5f2
parent 511
94a3d27e3b0d
child 792
a13346916170
equal deleted inserted replaced
534:7d247a767510 552:bc2948d7c5f2
94 rangeHigh = list(range(self.STYLE_LASTPREDEFINED + 1, 94 rangeHigh = list(range(self.STYLE_LASTPREDEFINED + 1,
95 self.STYLE_MAX + 1)) 95 self.STYLE_MAX + 1))
96 except AttributeError: 96 except AttributeError:
97 rangeHigh = list(range(40, 128)) 97 rangeHigh = list(range(40, 128))
98 98
99 f = font.family() 99 f = font.family().encode()
100 ps = font.pointSize() 100 ps = font.pointSize()
101 for style in rangeLow + rangeHigh: 101 for style in rangeLow + rangeHigh:
102 self.SendScintilla(QsciScintilla.SCI_STYLESETFONT, style, f) 102 self.SendScintilla(QsciScintilla.SCI_STYLESETFONT, style, f)
103 self.SendScintilla(QsciScintilla.SCI_STYLESETSIZE, style, ps) 103 self.SendScintilla(QsciScintilla.SCI_STYLESETSIZE, style, ps)
104 104

eric ide

mercurial