[wxGTK] demo Menu.py. Bug in TestInsert()

Hello.

If you try to choice 'Fun/insert after this...' item on linux
(booth GTK1 and GTK2), you will receive AssertionError:

Traceback (most recent call last):
  File "/wxPythonDemo/demo/Menu.py", line 251, in TestInsert
    menu.InsertItem(pos, item)
  File "/usr/lib/python2.3/site-packages/wx/core.py", line 7329, in InsertItem
    return _core.Menu_InsertItem(*args, **kwargs)
wx.core.PyAssertionError: C++ assertion "wxAssertFailure" failed in ../src/gtk/menu.cpp(1223): unexpected menu item kind

Moreover, menu item will be added to the end of submenu, not after
selected.

Sorry if it's known.bug.

···

--
SY, Mike.

Mike D. Rozhnov wrote:

Hello.

If you try to choice 'Fun/insert after this...' item on linux
(booth GTK1 and GTK2), you will receive AssertionError:

Traceback (most recent call last):
  File "/wxPythonDemo/demo/Menu.py", line 251, in TestInsert
    menu.InsertItem(pos, item)
  File "/usr/lib/python2.3/site-packages/wx/core.py", line 7329, in InsertItem
    return _core.Menu_InsertItem(*args, **kwargs)
wx.core.PyAssertionError: C++ assertion "wxAssertFailure" failed in ../src/gtk/menu.cpp(1223): unexpected menu item kind

Thanks, I've found the problem.

···

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