def delete ( self , id ) : if id in self . _images . keys ( ) : del self . _images [ id ] self . tk . delete ( id )
howto delete object on image using python
Deletes an object ( line triangle image etc ) from the drawing .
def delete(self, id):
        """
        Deletes an "object" (line, triangle, image, etc) from the drawing.

        :param int id:
            The id of the object.
        """
        if id in self._images.keys():
            del self._images[id]
        self.tk.delete(id)