[wxPython] wxDrawnShape

Fred Gansevles writes:

> Whatever I try, the 'OnLeftClick' method of my
> wxShapeEvtHandler-derived class instance never gets called.

Are you binding the event with the proper EVT_LEFT_DOWN or EVT_RIGHT_UP
call, or are you just creating a method named "OnLeftClick"? That last one
shouldn't work....

When I use a 'simple' shape (e.g. wxRectangleShape) it works *without*
binding to EVT_LEFT_DOWN or EVT_RIGHT_UP.

I suspected that I had to bind to the proper events but I couldn't find
which events I had to bind to what methods.

Can anyone tell me what to do so the following methods work with
wxDrawnShape (as they already do by default with wxRectangleShape)?
(These methods are from the wxOGL.py demo.)

    OnLeftClick(self, x, y, keys = 0, attachment = 0)
    OnEndDragLeft(self, x, y, keys = 0, attachment = 0)
    OnSize(self, x, y)
    OnMovePost(self, dc, x, y, oldX, oldY, display)
    OnRightClick(self, *dontcare)

Or, even better, point me to the documentation where I can find out myself
what events are bound (by default) to the wx*Shape classes.

ยทยทยท

____________________________________________________________________________
Fred Gansevles <mailto:Fred.Gansevles@cs.utwente.nl> Phone: +31 53 489 4613
        >>> Your one-stop-shop for Linux/WinNT/NetWare <<<
Org.: Twente University, Fac. of CS, Box 217, 7500 AE Enschede, Netherlands
      "Bill needs more time to learn Linux" - Steve B.