[PyKDE] Canvas: removing items

Moray Taylor mtaylor at lowebroadway.com
Wed Jun 26 10:53:00 BST 2002


Like so...

MyCanvasItem.setCanvas(None)

Moray

> Hi!
> 
> How can I remove items from a canvas?
> The documentation marks the method QCanvas.removeItem(item) as virtual and
> internal.
> 
> Using it results in an AttributeError.
> Using "del" doesn't really seem to work either...
> 
> How can I remove complete windows or the complete canvas...
> 
> Karl
> 
> _______________________________________________
> PyKDE mailing list    PyKDE at mats.gmd.de
> http://mats.gmd.de/mailman/listinfo/pykde




More information about the PyQt mailing list