[PyQt] dragdroprobot example, take 2

Giovanni Bajo rasky at develer.com
Fri Jul 13 10:10:44 BST 2007


On 13/07/2007 0.02, Lieven Buts wrote:
> OK, after taking another look at my Python version of the
> "dragdroprobot" example, I found that my code was simply
> not keeping any references to the QGraphicsItemAnimation
> instances, causing them to be garbage-collected. With
> suitable modifications (see
> http://ultr23.vub.ac.be/~lieven/pyqt/dragdroprobot-7.py )

... or just makes it a child of another object you keep a reference of (like 
the Robot instance).
-- 
Giovanni Bajo



More information about the PyQt mailing list