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:  [email protected] |
+------------------------------+-----------------------------+


_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to