When I try to run my application (just a frame with a menu, status bar, and
notebook so far) I keep getting this error:
File "eikos.py", line 246, in ?
frame_1 = MyFrame(None, -1, "")
File "eikos.py", line 86, in __init__
self.Bind(wx.EVT_MENU, self.OnFileOpen, id=101)
AttributeError: 'MyFrame' object has no attribute 'OnFileOpen'
The referenced line reads:
self.Bind(wx.EVT_MENU, self.OnFileOpen, id=101)
and the same code (minus some menu items) runs in another application.
Running the application under the debugger ('python -m pdb eikos.py') does
not give me any more insight. I've spent several hours looking and cannot see
what's different between the two applications, or just why this one will not
run. The file is 9104 bytes.
I'd really appreciate someone pointing out to me why this error occurs.
That way I can learn to do it right and correct similar errors in the same
file.
TIA,
Rich
···
--
Richard B. Shepard, Ph.D. | Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM) | Impact Assessments Using Fuzzy Logic"
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863