Bug in RichTextCtrl?

If I override the CanCut and CanPaste methods in my own subclass of
wx.richtext.RichTextCtrl, the contextual menu that appears when you
right-click in the control pays no attention to the values my methods
return.

Is that the expected behavior, based on some weird interaction between
the underlying C++ code and the Python, or is it a bug in that the
RichTextCtrl isn't checking CanCut and CanPaste to know which menu
items should be grayed out?

Thanks,
Todd

Todd O'Bryan wrote:

If I override the CanCut and CanPaste methods in my own subclass of
wx.richtext.RichTextCtrl, the contextual menu that appears when you
right-click in the control pays no attention to the values my methods
return.

Is that the expected behavior, based on some weird interaction between
the underlying C++ code and the Python, or is it a bug in that the
RichTextCtrl isn't checking CanCut and CanPaste to know which menu
items should be grayed out?

http://wiki.wxpython.org/OverridingMethods

You can work around this by providing your own context menu.

ยทยทยท

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