[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,

[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 s

[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 s

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

2013-07-15 Thread levinie
. Generating the top-level .pro file... Generating the top-level Makefile... Making the pyuic5 wrapper executable... -- -- ??: "Phil Thompson"; : 2013??7??15??(??????) 5:48 ??: "levinie"; : "PyQt"

[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, but

[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, Qt