Feb-09-2017, 07:51 PM
traceback is what python prints out on the console when an error is encountered
Your code has changed, "sid = wx.ID_ANY" is no longer there, but in the menu definition.
This does not change the issue, which is:
The reason is that the initial value of wx.ID_ANY ire compiled into the menu
like a constant, not a variable. So it's permanent value is what it was when the
menu code was first encountered on initialization. The actual value of wx.ID_ANY can change,
but the menu value remains constant. You need to query that value at the time the menu
method is executed.
Your code has changed, "sid = wx.ID_ANY" is no longer there, but in the menu definition.
This does not change the issue, which is:
The reason is that the initial value of wx.ID_ANY ire compiled into the menu
like a constant, not a variable. So it's permanent value is what it was when the
menu code was first encountered on initialization. The actual value of wx.ID_ANY can change,
but the menu value remains constant. You need to query that value at the time the menu
method is executed.