examples/gui.py fails at line 35

Issue #82 resolved
Kenneth Long created an issue

ln 35 of examples/gui.py

There is no member event.text.start or event.text.length, the code is for a TextEditingEvent and is referencing the object for a TextInputEvent

Following is the top frame of the callstack(traceback)

File "C:/development/Python27/Lib/site-packages/sdl2/examples/gui.py", line 35, in onedit (event.text.text, event.text.start, event.text.length))

AttributeError: 'SDL_TextInputEvent' object has no attribute 'start'

simply because they're both types of Text (input-like) events?

Comments (1)

  1. Log in to comment