Crash report: AttributeError: 'EraEditorDialog' object has no attribute 'on_return'
Cross-platform app for displaying and navigating events on a timeline.
Brought to you by:
rickardlindberg,
rogerlindberg
Attempted to enter the start and end dates for the Baroque Period (1600-1750)
Traceback (most recent call last): File "timelinelib\wxgui\components\gregoriandatetimepicker.pyc", line 257, in on_key_down File "timelinelib\wxgui\components\gregoriandatetimepicker.pyc", line 44, in on_return AttributeError: 'EraEditorDialog' object has no attribute 'on_return' Timeline version: 1.6.0 System version: Windows, WBWIUSR9ZGWYG, 7, 6.1.7601, AMD64, Intel64 Family 6 Model 58 Stepping 9, GenuineIntel Python version: 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] wxPython version: 2.8.12.1 (msw-unicode)
The problem can be recreated as follows:
- Open the Era edit
- Place the cursor in a date field
- Klick Enter key
Problem Solved: Added the on_return attribute to the EraEditorDialog and made it call the controller on_btn_ok method.