Hi,

When I need to delete an object I do:

         if self._selectedObject:
             runit = 
self.ds.query(db.Wineracku).get(self._selectedObject.rackUnitId)
             self.doListItemDelete(runit)
             self.canvas.RemoveObject(self._selectedObject)
             self._rackModulesCount -= 1
             self._rackModules.remove(self._selectedObject)
             self._selectedObject = None
             self.canvas.ZoomToBB()
             self.canvas.Draw(True)

After above code the related database items are gone (doListItemDelete) 
but the _selectedObject is still shown on the canvas, I have to close 
and reload to see the change.

What step am I missing in the delete?  BTW, the _selectedObject is an 
"fc.Group" type object.  Do I have to remove the objects which are 
grouped by this selected object individually?

Werner
_______________________________________________
FloatCanvas mailing list
[email protected]
http://paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to