[PyQt] Possible bug in handling '-visual TrueColor' option

Benno Dielmann lists at benno-dielmann.de
Tue Jun 10 22:20:05 BST 2008


I think it's an X11 problem. Take a look at the comments to this blog entry:

http://zrusin.blogspot.com/2006/10/argb-windows.html

Other people have the same issues with the c++ version.

By the way, I tried the argb.py you attached in one of your previous mails and 
I don't get these errors.

Benno.

On Tuesday 10 June 2008 Phil Thompson wrote:
| On Tuesday 10 June 2008 9:52:18 pm Neal Holtz wrote:
| > Hi,
| >
| > IN the following program, if I run it with a '-visual TrueColor' option,
| > I get the following behaviour:
| >
| > When I move the mouse pointer into the window for the first
| > time, I get:
| >
| > X Error: BadMatch (invalid parameter attributes) 8
| >   Extension:    157 (RENDER)
| >   Minor opcode: 4 (RenderCreatePicture)
| >   Resource id:  0x188
| >
| > When I close the window, I get:
| >
| > X Error of failed request:  RenderBadPicture (invalid Picture parameter)
| >   Major opcode of failed request:  157 (RENDER)
| >   Minor opcode of failed request:  7 (RenderFreePicture)
| >   Picture id in failed request: 0x400000f
| >   Serial number of failed request:  285
| >   Current serial number in output stream:  289
| >
| > If I run it without options, I get no diagnostics.
| >
| > Qt 4.3.4, PyQt 4.3.3 on Ubuntu Hardy.
| >
| > cheers
| > neal
| >
| > ################################### tc_bug.py:
| > """Illustrate bug resulting from -visual TrueColor option.
| >
| >   1.  do "python tc_bug.py"
| >       move mouse pointer into window, then close window.
| >       no diagnostics are produced.
| >   2.  do "python tc_bug.py -visual TrueColor"
| >       move mouse pointer into window, then close window.
| >       X Errors are produced for each.
| > """
| >
| > import sys
| > from PyQt4 import QtGui, QtCore
| >
| > print QtCore.QT_VERSION_STR, QtCore.PYQT_VERSION_STR
| >
| > app = QtGui.QApplication( sys.argv )
| > w = QtGui.QWidget()
| > w.resize(200,200)
| > w.show()
| > app.exec_()
| > ####################################
|
| What makes you think it's a PyQt problem?
|
| Phil
| _______________________________________________
| PyQt mailing list    PyQt at riverbankcomputing.com
| http://www.riverbankcomputing.com/mailman/listinfo/pyqt




More information about the PyQt mailing list