[wxPython-users] Right-click menu on AUINotebook tab?

Chris Mellon arkanes at gmail.com
Thu Feb 1 14:11:57 PST 2007


On 2/1/07, Frank Niessink <frank at niessink.com> wrote:
> Hi,
>
> I'm trying to capture wx.EVT_RIGHT_CLICK to pop a context menu on a
> AUINotebook tab, but it seems all mouse events are eaten by the control.
> Does anyone have suggestions for a work-around?
>

I can't find an API to access it, but a wx.AUINotebook will have
children which are instances of wx.AUITabCtrl, and binding mouse
events to those seems to work. Be sure you call event.Skip() to allow
the base class handling to happen.




More information about the wxpython-users mailing list