From: John H. <kim...@ya...> - 2005-06-03 16:08:26
|
Thanks for the reply. "What's the platform ?" Windows XP fp 2 "Version of wxPython" wxPython2.5-win32-unicode-2.5.4.1-py23.exe "and of Python ?" 2.3.5 "Do the Pythoncard samples work OK ?" Yes. "How about the wxPython demos ?" I don't see any demo ap in the wxPython directory. 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. Thanks, -- John -----Original Message----- From: pyt...@li... [mailto:pyt...@li...] On Behalf Of Liam Clarke Sent: Friday, June 03, 2005 4:57 AM To: pyt...@li... Subject: Re: [Pythoncard-users] TextField bug? On 6/3/05, Alex Tweedly <al...@tw...> wrote: kim...@ya... wrote: >Hello list, > >I am having touble with textfield objects in >Pythoncard - I am using the latest version downloaded >from www.pythoncard.org (ver 0.81?). > >I have a no-brainer application and when I run it, the >moment I hit a key when inside a textfield, I get an >exception in class point within _core.py, method >__getitem__. The code says: > > def __getitem__(self, index): > return self.Get()[index] > >and it's choking on indexing out-of-range. > >I've checked and the size of self.Get() is 2 and the >value of index is 2 and that's why it crashed. > >As I said, this is a no-brainer ap (just a textfield >and nothing else). What's wrong? > > > What's the platform ? Version of wxPython, and of Python ? Do the Pythoncard samples work OK ? How about the wxPython demos ? -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 267.5.2 - Release Date: 03/06/2005 ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 _______________________________________________ Pythoncard-users mailing list Pyt...@li... https://lists.sourceforge.net/lists/listinfo/pythoncard-users Ai, please post the whole error message, is _core.py part of the Pythoncard package? I get the feeling it's a part of wxPython. -- 'There is only one basic human right, and that is to do as you damn well please. And with it comes the only basic human duty, to take the consequences.' |