From: <kim...@ya...> - 2005-06-07 22:03:52
|
Alex, Your code crashed the same way on my system. As soon as I hit a key at the entry field, the program crashed. Here's the trace back from WingIDE: IndexError: tuple index out of range Traceback (innermost last): File "C:\KeyEvent\KeyEvent.py", line 1, in ? #!/usr/bin/python File "C:\KeyEvent\KeyEvent.py", line 72, in ? app.MainLoop() File "D:\Python23\Lib\site-packages\wx-2.5.4-msw-unicode\wx\_core.py", line 5597, in MainLoop wx.PyApp.MainLoop(self) File "D:\Python23\Lib\site-packages\wx-2.5.4-msw-unicode\wx\_core.py", line 5031, in MainLoop return _core_.PyApp_MainLoop(*args, **kwargs) File "D:\Python23\Lib\site-packages\PythonCard\components\textfield.py", line 342, in _dispatch widget.Widget._dispatch(self, aWxEvent) File "D:\Python23\Lib\site-packages\PythonCard\widget.py", line 365, in _dispatch aWxEvent = eventClassInstance.decorate(aWxEvent, self) File "D:\Python23\Lib\site-packages\PythonCard\event.py", line 341, in decorate aWxEvent.position = tuple(aWxEvent.GetPosition()) File "D:\Python23\Lib\site-packages\wx-2.5.4-msw-unicode\wx\_core.py", line 1043, in __getitem__ Regards, -- John |