Robin Dunn wrote:
Will Sadkin wrote:
> Robin Dunn wrote:
>
>>Will Sadkin wrote:
>>
>>>[...]
> Ok, well I tried that, but the event doesn't even fire. Here's a
> code snippet:
>
> EVT_RIGHT_UP(self, self._OnContextMenu )
>
> def _OnContextMenu(self, event):
> dbg('OnContextMenu()', indent=1)
> self._contextMenu = wxMenu()
> self._contextMenu.Append(wxID_UNDO, "Undo", "")
> [...]
> EVT_UPDATE_UI(self._contextMenu, wxID_UNDO, self.UndoUIUpdate)Try using just 'self' here for the first parameter.
My fault for not understanding your preceding note re: who
gets the event; that did the trick. Thanks!
/Will Sadkin
Parlance Corporation
www.nameconnector.com