From: John H. <kim...@ya...> - 2005-06-07 15:25:12
|
No, the processing code has nothing with the problem. The point is that the mere existence of the keyPress handling is causing the crash. May be my handler is not correct. I looked at the sample Pythoncard sample programs and didn't find any sample code on how to add the keyPress event. Thanks again. > I am beginning to wonder if it has to do with the > keyPress event I am trying. This is what I am doing: > > #********* > def on_tfStudy_keyPress(self, event): > keyCode = event.keyCode > if keyCode==13 : > ...some processing code... > else: > event.skip() > #********* > > Without this event, the program doesn't crash. > > Sounds like that's the culprit; dig in with your usual debugging techniques to see where it is. If you want more help - just holler. Liam's request for the whole traceback is also a good idea if you want to send that - but I think you now have it narrowed down to something in the "...some processing code ..." -- |