[PyQt] QtScintilla2 and fonts
Phil Thompson
phil at riverbankcomputing.co.uk
Tue Jun 26 15:02:42 BST 2007
On Tuesday 26 June 2007 1:38 pm, kib2 wrote:
> 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.
Works for me.
Phil
More information about the PyQt
mailing list