Seite 1 von 1
Qt Animation Framework
Verfasst: Mittwoch 31. März 2010, 00:52
von anogayales
Hi,
ich wollte heute mal ein wenig mit dem PyQt4 QPropertyAnimation rumspielen (siehe
http://doc.trolltech.com/4.6/animation-overview.html).
Habe auch PyQt4 (4.6.1) installiert, leider finde ich angegebene Klasse nicht in QtCore. Kann mir jemand weiter helfen? Gibt es dafür noch keine bindings?
Grüße,
anogayales
Verfasst: Mittwoch 31. März 2010, 09:07
von philistion
Verfasst: Mittwoch 31. März 2010, 22:19
von anogayales
Code: Alles auswählen
>>> import PyQt4
>>> PyQt4.QtCore.QPropertyAnimation
Traceback (most recent call last):
AttributeError: 'module' object has no attribute 'QPropertyAnimation'
Klappt das bei euch?
Verfasst: Mittwoch 31. März 2010, 23:05
von philistion
Nein, das kann es auch nicht da PyQt.QtCore ein eigenes Submodul ist und nicht rekursiv importiert wird wenn du nur PyQt angibst.
Code: Alles auswählen
>>> from PyQt4.QtCore import QPropertyAnimation
>>> QPropertyAnimation
<class 'PyQt4.QtCore.QPropertyAnimation'>
Verfasst: Donnerstag 1. April 2010, 00:00
von anogayales
Wieder was gelernt!
Vielen Dank!
Re: Qt Animation Framework
Verfasst: Samstag 5. Juni 2010, 13:28
von anogayales
Echt komisch, jetzt wollte ich schön loslegen und ich bekomme, wenn ich:
aufrufe:
ImportError: cannot import name QPropertyAnimation
Irgendjemand eine Idee?
Grüße,
anogayales
Re: Qt Animation Framework
Verfasst: Samstag 5. Juni 2010, 14:32
von lunar
Wenn die Klasse nicht vorhanden ist, dann verwendest Du wohl nicht die richtige Version von PyQt oder Qt selbst.