[PyQt] QX11EmbedContainer problem.

Phil Thompson phil at riverbankcomputing.com
Mon Mar 1 20:56:17 GMT 2010


On Tue, 2 Mar 2010 02:12:59 +0530, Anshul Kumar Jain <anshul at seeta.in>
wrote:
> I have been trying to work out the working of QX11EmbedContainer() for a
> long time now. I created a huge code. But now have defragmented to
> following
> snippet:
> 
> 
> import sys
> from PyQt4.QtCore import *
> from PyQt4 import QtGui
> 
> 
> if __name__=='__main__':
>     cont = QtGui.QX11EmbedContainer()
> 
> 
> Whenever I try and run this snippet i get the following error:
> 
> Traceback (most recent call last):
>   File "/Users/AJ/Desktop/test/test.py", line 7, in <module>
>     cont = QtGui.QX11EmbedContainer()
> AttributeError: 'module' object has no attribute 'QX11EmbedContainer'
> 
> 
> Please tell me how to use QX11EmbedContainer(). Do I need some special
> installations or am I using the class itself in a wrong manner?

Your PyQt installation would appear to be broken. What version is it? Did
you build it yourself?

Phil


More information about the PyQt mailing list