Re: [PyQt] QtScintilla2 and fonts

2007-06-30 Thread Phil Thompson
On Saturday 30 June 2007 6:43 pm, kib2 wrote: > Phil, > > I've uploaded the version here : > > h**p://kib2.free.fr/temp/pyqt4/qt4_sci_test.py Detlev's suggestion should fix the problem. Attached is what I would call a small example that demonstrates the "problem". Phil qt4_sci_test.py Descript

Re: [PyQt] QtScintilla2 and fonts

2007-06-30 Thread Detlev Offenbach
On Samstag, 30. Juni 2007, Phil Thompson wrote: > On Tuesday 26 June 2007 10:37 pm, kib2 wrote: > > Phil Thompson a écrit : > > > On Tuesday 26 June 2007 1:38 pm, kib2 wrote: > > >> Hi, > > >> > > >> I'm trying to play with QtScintilla2 and something is going wrong : > > >> > > >> editor = QsciScin

Re: [PyQt] QtScintilla2 and fonts

2007-06-30 Thread kib2
Phil, I've uploaded the version here : h**p://kib2.free.fr/temp/pyqt4/qt4_sci_test.py ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QtScintilla2 and fonts

2007-06-30 Thread kib2
Phil Thompson a écrit : Can you please give me a sample ? There is a bug in readSettings() that is fixed in tonight's snapshot. Though I don't see how using the settings helps particularly. The eric source code is probably the best source of example code. I've tried to see a edge line at

Re: [PyQt] QtScintilla2 and fonts

2007-06-30 Thread Phil Thompson
On Tuesday 26 June 2007 10:37 pm, kib2 wrote: > Phil Thompson a écrit : > > 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"

Re: [PyQt] pylupdate patch for UTF-8 support

2007-06-30 Thread Phil Thompson
On Tuesday 26 June 2007 5:42 pm, Giovanni Bajo wrote: > Hi, > > this patch is needed for me to be able to correctly run pylupdate over > Python UTF-8 source code, containing UTF-8 literal strings. > > The code uses self.tr() instead of self.trUtf8() and changes the > defaultCodecForTr to UTF-8 at s

Re: [PyQt] QPainter.boundingRect & flags, mixing enum types issue...

2007-06-30 Thread Phil Thompson
On Saturday 30 June 2007 12:12 pm, Baptiste Lepilleur wrote: > I'm stumbled uppon the error below when attempting to use > QPainter.boundingRect: > > flags = QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop | QtCore.Qt.TextSingleLine > bound = painter.boundingRect( QtCore.QRectF(), flags, word.text ) > > T

[PyQt] QPainter.boundingRect & flags, mixing enum types issue...

2007-06-30 Thread Baptiste Lepilleur
I'm stumbled uppon the error below when attempting to use QPainter.boundingRect: flags = QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop | QtCore.Qt.TextSingleLine bound = painter.boundingRect( QtCore.QRectF(), flags, word.text ) Traceback (most recent call last): File "test.pyw", line 142, in paintE