What does "SystemError: <class 'wx._core.CommandEvent'> returned a result" with an error set mean?

Have a look at this post for possible solutions.