Open mausch opened 1 year ago
I have upgraded (on Windows) to wxPython 4.2.1 but there the issue is not reproducable. According to the documentation (https://wxpython.org/Phoenix/docs/html/wx.MenuItem.html#wx.MenuItem.__init__) the second argument is supposed to be an int. So I think the problem lies elsewhere. What Python version are you using?
I have upgraded (on Windows) to wxPython 4.2.1 but there the issue is not reproducable. According to the documentation (https://wxpython.org/Phoenix/docs/html/wx.MenuItem.html#wx.MenuItem.__init__) the second argument is supposed to be an int. So I think the problem lies elsewhere. What Python version are you using?
I believe its 3.10.12
The Nix package uses Python 3.9. EasyABC has other known issues with Python 3.10 ( https://github.com/jwdj/EasyABC/issues/52 )
The Nix package uses Python 3.9. EasyABC has other known issues with Python 3.10 ( #52 )
indeed you are right !
According to the documentation (https://wxpython.org/Phoenix/docs/html/wx.MenuItem.html#wx.MenuItem.__init__) the second argument is supposed to be an int. So I think the problem lies elsewhere.
Yeah, I'm thinking there's something wrong with the Nix package for wxPython or wxWidgets.
I changed that EasyABC line to say wx.ID_ANY
instead of -1
and I get TypeError: MenuItem(): argument 2 has unexpected type 'StandardID'
which is a more googleable error message that led me to https://web.archive.org/web/20230603153021/https://discuss.wxpython.org/t/typeerror-menuitem-argument-2-has-unexpected-type-standardid-when-running-the-demo/36464
in which people suspect of an incorrect wxWidgets build.
I'll see if I can create a small repro.
Works fine with wxPython 4.2.0 First reported in https://github.com/NixOS/nixpkgs/pull/243561