Re: [PyQt] Problem with boundingRect in PyQt snapshot

2009-09-17 Thread Phil Thompson
On Wed, 16 Sep 2009 20:04:48 +0100, Jeremy Sanders wrote: > Hi - for some reason the following code does not produce the > correct answer after updating PyQt. > > On Ubuntu with the PyQt 4.4.4 package the following returns > 18.0 > > from PyQt4.QtGui import * > from PyQt4.QtCore import * > imp

Re: [PyQt] Segmentation fault in keyPressEvent

2009-09-17 Thread Phil Thompson
On Thu, 17 Sep 2009 21:45:41 +0200, Mads Ipsen wrote: > The following script triggers a segmentation fault: > > import sys > from PyQt4 import QtGui > > if __name__ == "__main__": > app = QtGui.QApplication(sys.argv) > > widget = QtGui.QWidget() > widget.show() > widget.keyPress

[PyQt] Segmentation fault in keyPressEvent

2009-09-17 Thread Mads Ipsen
The following script triggers a segmentation fault: import sys from PyQt4 import QtGui if __name__ == "__main__": app = QtGui.QApplication(sys.argv) widget = QtGui.QWidget() widget.show() widget.keyPressEvent(None) sys.exit(app.exec_()) I believe it should generate an error. S

Re: [PyQt] Problem with boundingRect in PyQt snapshot

2009-09-17 Thread Jeremy Sanders
On Thu, 17 Sep 2009, Phil Thompson wrote: On Thu, 17 Sep 2009 11:39:09 +0100, Mark Summerfield wrote: On 2009-09-16, Phil Thompson wrote: On Wed, 16 Sep 2009 20:04:48 +0100, Jeremy Sanders wrote: Hi - for some reason the following code does not produce the correct answer after updating PyQ

Re: [PyQt] Problem with boundingRect in PyQt snapshot

2009-09-17 Thread Phil Thompson
On Thu, 17 Sep 2009 11:39:09 +0100, Mark Summerfield wrote: > On 2009-09-16, Phil Thompson wrote: >> On Wed, 16 Sep 2009 20:04:48 +0100, Jeremy Sanders >> >> wrote: >> > Hi - for some reason the following code does not produce the >> > correct answer after updating PyQt. >> > >> > On Ubuntu with

Re: [PyQt] Problem with boundingRect in PyQt snapshot

2009-09-17 Thread Mark Summerfield
On 2009-09-16, Phil Thompson wrote: > On Wed, 16 Sep 2009 20:04:48 +0100, Jeremy Sanders > > wrote: > > Hi - for some reason the following code does not produce the > > correct answer after updating PyQt. > > > > On Ubuntu with the PyQt 4.4.4 package the following returns > > 18.0 > > > > from Py