prashant
31st October 2009, 16:11
Related to PyQt 4.6.1
When deleting/removing a sub classed QGraphicsLineItem :
self.scene().removeItem(item)
del item
the function
def __del__(self):
print "I am dead"
is not getting called.
How do I call a function when a graphic item is going to delete?
When deleting/removing a sub classed QGraphicsLineItem :
self.scene().removeItem(item)
del item
the function
def __del__(self):
print "I am dead"
is not getting called.
How do I call a function when a graphic item is going to delete?