[PyQt] PyQt5.QtGui can't be imported

2013-07-15 Thread levinie
I found PyQt5 today and have a try.I installed it on Python3.3.2, but some module can't be imported such as PyQt5.QtGui, PyQt5.QtWidgets. Some other is ok, like QtCore, QtDBus, QtNetwork, QtXmlPatterns. In fact, this .so file in the /opt/python/bin/lib/python3.3/site-packages, but QtGui.so,

[PyQt] PyQt5.QtGui can't be imported

2013-07-15 Thread levinie
I found PyQt5 today and have a try.I installed it on Python3.3.2 + Ubuntu12.04, but some module can't be imported such as PyQt5.QtGui, PyQt5.QtWidgets. Some other is ok, like QtCore, QtDBus, QtNetwork, QtXmlPatterns. In fact, this .so file in the /opt/python/bin/lib/python3.3/site-packages,

[PyQt] ?????? PyQt5.QtGui can't be imported

2013-07-15 Thread levinie
@riverbankcomputing.com; : Re: [PyQt] PyQt5.QtGui can't be imported On Mon, 15 Jul 2013 17:03:49 +0800, levinie levi...@qq.com wrote: I found PyQt5 today and have a try.I installed it on Python3.3.2 + Ubuntu12.04, but some module can't be imported such as PyQt5.QtGui, PyQt5.QtWidgets. Some other

[PyQt] Install the PyQt5 on Windows XP?

2013-07-18 Thread levinie
I run this:python configure.py --verbose -w output: C:\Qt\5.1.0\mingw48_32\bin\qmake.exe -spec win32-msvc2008 -o qtdetail.mk qtdetail.pro nmake -f qtdetail.mk release It failed. I use mingw, so it should be mingw32-make -f qtdirs.mk release not nmake -f qtdetail.mk release Who knows the

[PyQt] Install the PyQt5 on Windows XP?

2013-07-18 Thread levinie
I run this:python configure.py --verbose -w output: C:\Qt\5.1.0\mingw48_32\bin\qmake.exe -spec win32-msvc2008 -o qtdetail.mk qtdetail.pro nmake -f qtdetail.mk release It failed. I use mingw, so it should be mingw32-make -f qtdirs.mk release not nmake -f qtdetail.mk release Who knows the

[PyQt] A error in the examples??

2013-08-14 Thread levinie
The examples is really great, it tell me how to use PyQt5.When i run the examples/layouts/flowlayout.py, it throw a exception ,as follow. size += QSize(2 * self.margin(), 2 * self.margin()) AttributeError: 'Flow_Layout' object has no attribute 'margin'. Same error is in borderlayout.py,