[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] Deleting QCanvasItems
From:       Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date:       2003-06-17 12:28:45
[Download RAW message or body]

On Tuesday 17 June 2003 9:48 am, Dustin Vink wrote:
> Is there a better way of deleting QCanvasItems?
>
> def erase(self):
> 	trash = QCanvas()
> 	for item in self.canvas.allItems(): item.setCanvas(trash)
> 	self.canvas.update()

See the FAQ.

Phil

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic