[PyQt] Error in example script
Mads Ipsen
mpi at comxnet.dk
Wed Sep 9 07:46:40 BST 2009
The OpenGL example script 'samplebuffers.py' will fail when reaching the
blocks:
' if not QtOpenGL.QGLFormat.hasOpenGL():
QMessageBox.information(None, "OpenGL samplebuffers",
"This system does not support OpenGL.")
sys.exit(0)
and
if not widget.format().sampleBuffers():
QMessageBox.information(None, "OpenGL samplebuffers",
"This system does not have sample buffer support.")
sys.exit(0)
The calls to the static method 'QMessageBox.information' should be
replaced by
QtGui.QMessageBox.information
Best regards,
Mads
--
+------------------------------------------------------------+
| Mads Ipsen, Scientific developer |
+------------------------------+-----------------------------+
| QuantumWise A/S | phone: +45-29716388 |
| Nørresøgade 27A | www: www.quantumwise.com |
| DK-1370 Copenhagen, Denmark | email: mpi at quantumwise.com |
+------------------------------+-----------------------------+
More information about the PyQt
mailing list