App crashes w/o even showing a window when wx.MenuItem(subMenu=wx.Menu()) is used. Below is fully working code that reproduces the issue. Do you think this is a bug, or am I doing something wrong? I’m using Windows 7 64 bit, Python 3.6.6 64 bit, wxPython 4.0.3.
App crashes w/o even showing a window when wx.MenuItem(subMenu=wx.Menu()) is used. Below is fully working code that reproduces the issue. Do you think this is a bug, or am I doing something wrong? I’m using Windows 7 64 bit, Python 3.6.6 64 bit, wxPython 4.0.3.
BTW, I’m using such non-traditional way to construct menu so that to be able to use bitmaps in submenus, rather than menu items alone
This is not really “non-traditional”. It looks quite normal.
Your code also fails on MacOS. The Append option with subMenu has been deprecated; if I replace that line with the equivalent replacement:
menu.AppendSubMenu( wx.Menu(), ‘item #X’ )