[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] =?utf-8?q?PyQt5=2E5_demo_problem_on_Windows_64_Python_3=2E?=
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2015-07-23 17:57:45
Message-ID: ded6d037a213a1238f58aa3779a659f6 () riverbankcomputing ! com
[Download RAW message or body]

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
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic