wxDiagram problem

Tks, but now I have another problem, hehe. I want to delete this shape, but how can I make my program know what is the shape that I selected for example? In the wxShapeEvtHandler I use this command "shape=self.GetShape()" and with this I can use the shape for some functions, but in my program this method dont works. I have other way to discover what is the shape selected?
I hope I can be clear hehe.

Diego

Robin Dunn wrote:

···

Diego Prestes wrote:

Hi! I trying to use wxDiagram but I was seeing the documentation and I dont find any way to delete a shape. I just saw the DeleteAllShapes(), but I need to delete just one shape. Someone know if have one way to do this?

    diagram.RemoveShape(shape)
    shape.Destroy()

Diego Prestes wrote:

Tks, but now I have another problem, hehe. I want to delete this shape, but how can I make my program know what is the shape that I selected for example? In the wxShapeEvtHandler I use this command "shape=self.GetShape()" and with this I can use the shape for some functions, but in my program this method dont works. I have other way to discover what is the shape selected?
I hope I can be clear hehe.

Well, one way would be to call a method of whatever object needs to know what the selected shape is from the location where you do the self.GetShape as described above.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!