[PyQt] Windows 7: Qtdemo.pyw won't start

Sibylle Koczian nulla.epistola at web.de
Wed Oct 14 09:28:38 BST 2015



Am 12.10.2015 um 15:30 schrieb Phil Thompson:
> On 12 Oct 2015, at 2:26 p.m., Sibylle Koczian <nulla.epistola at web.de> wrote:
>>
>> Trying to start the PyQt demo program from the Windows command prompt I get this:
>>
>> C:\Python34\Lib\site-packages\PyQt5\examples\qtdemo>py qtdemo.pyw
>> Traceback (most recent call last):
>>   File "qtdemo.pyw", line 77, in <module>
>>     MenuManager.instance().init(mainWindow)
>>   File "C:\Python34\Lib\site-packages\PyQt5\examples\qtdemo\menumanager.py", lin
>> e 331, in init
>>     self.createTicker()
>>   File "C:\Python34\Lib\site-packages\PyQt5\examples\qtdemo\menumanager.py", lin
>> e 748, in createTicker
>>     DemoItemAnimation.ANIM_IN)
>>   File "C:\Python34\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 u
>> nexpected type 'str'
>>
>> Using Python 3.4.3, PyQt 5.5 on Windows 7, 64 bit.
>>
>> I suppose changing 'pos' to "b'pos'" would help at this point, but I suspect there's more of the same distributed through the application.
>
> Correct - it is fixed in the current snapshot.
>
> Phil
>
Thank you. I've just exchanged the examples directory in my PyQt5 
installation, now I can use the demo program. But I wonder: the files 
there have the date 23.09.2015 ???

Sibylle


More information about the PyQt mailing list