[PyQt] QtScintilla2 and fonts

kib2 kib2 at free.fr
Tue Jun 26 13:38:03 BST 2007


Hi,

I'm trying to play with QtScintilla2 and something is going wrong :

editor = QsciScintilla()
font = QtGui.QFont()
font.setFamily("Consolas")
font.setPointSize(10)
editor.setFont(font)
editor.setMarginsFont(font)

the problem here is that the Margin font is set correctly, but not the 
editor one.

Have you got any hint please ? Thanks.



More information about the PyQt mailing list