Panda in PyQt

I was able to get this code working with the latest version of Panda3d/Qt4 on Ubuntu 10.10. However watching the prompt I am getting the follow:
display:x11display(error): BadMatch (invalid parameter attributes)

Which looks to be caused by the windowHandle being passed into openDefaultWindow(windowHandle)

Is anyone else having this issue? Or know how to fix it?