Erasing items from a canvas

Garry Taylor gtaylor at lowebroadway.com
Thu May 23 09:46:19 EDT 2002


Hello,
     I am having a little difficulty removing items from a canvas in
QT/Python, I do a Items = canvas.allItems() and then do a for loop
which does del(item) on each item, I can then do canvas.allItems()
again, and get the same number of items, i.e. they have not been
deleted. The problem happens on my Transmeta laptop, but is far worse
on a G4 PowerBook, both with linux.

Is there a better way to erase items off a canvas?

Thanks

Garry

Could answers please be sent to gtaylor at lowebroadway.com as well as
the group, my newsreading facilities leave a little to be desired
thanks to the companies firewall.

Thanks again.



More information about the Python-list mailing list