[PyQt] PyQt5.5 demo problem on Windows 64 Python 3.4 ?
Phil Thompson
phil at riverbankcomputing.com
Thu Jul 23 18:57:45 BST 2015
On 23/07/2015 6:48 pm, Big Stone wrote:
> hi ,
>
> I'm not sure to have installed PyQt5.5 right, but I have an error when
> launching the demo.exe:
>
>
> python \Lib\site-packages\PyQt5\examples\qtdemo\qtdemo.py
> Traceback (most recent call last):
> File "\Lib\site-packages\PyQt5\examples\qtdemo\qtdemo.py", line 77,
> in
> <module> MenuManager.instance().init(mainWindow)
> File "\Lib\site-packages\PyQt5\examples\qtdemo\menumanager.py", line
> 331,
> in init
> self.createTicker()
> File "\Lib\site-packages\PyQt5\examples\qtdemo\menumanager.py", line
> 748,
> in createTicker
> DemoItemAnimation.ANIM_IN)
> File "\Lib\site-packages\PyQt5\examples\qtdemo\demoitemanimation.py",
> line 52, in __init__
> super(DemoItemAnimation, self).__init__(item, 'pos')
> TypeError: arguments did not match any overloaded call:
> QPropertyAnimation(QObject parent=None): too many arguments
> QPropertyAnimation(QObject, QByteArray, QObject parent=None):
> argument 2
> has unexpected type 'str'
It's a bug. Just change the 'pos' to b'pos'.
Phil
More information about the PyQt
mailing list