Open emersonrp opened 5 months ago
The demo runs without crashing when using wxPython 4.2.1 + Python 3.10.12 + Linux Mint 21.3.
The FlatMenu code creates the two menu items IDs in a sequence, one after the other:
MENU_DISABLE_MENU_ITEM = wx.NewIdRef()
MENU_REMOVE_MENU = wx.NewIdRef()
My understanding is that MENU_REMOVE_MENU
> MENU_DISABLE_MENU_ITEM
. It is like that on Windows, and apparently it is like that on Linus as well per @reticulatus message.
Can it be a quirk of Python 3.12? No clue.
From reading the error comment, it appears the reverse logic chain map may be similar to a Wikipedia page. If you hit zero length curve or None it may be trying to ask you if you are root location(creator). There may not be a wayback function for the machine... It might have been destroyed already. This might be a macos/apple/Linux quirk. If so, it 99% would almost be hardware related if the two cannot get along.
I have retested using wxPython 4.2.2 gtk3 (phoenix) wxWidgets 3.2.6 + Python 3.12.3 + Linux Mint 22 and the FlatMenu example runs without crashing.
Operating system: Manjaro Linux wxPython version & source: 4.2.1 from Manjaro extra Python version & source: 3.12.4 from Manjaro core
Description of the problem:
Clicking on the "Test Flatmenu" button in the Flatmenu demo panel fails with the following traceback: