What's tfStudy? I assume it's your textfield.What are the attributes of
your text field in the resource file? If you copy and post your code
and resource file somewhere like this - <a href="http://www.rafb.net/paste/">http://www.rafb.net/paste/</a> <br>
it'd be a lot easier to figure out. <br>
<br>
<br><div><span class="gmail_quote">On 6/4/05, <b class="gmail_sendername">John Henry</b> <<a href="mailto:kimwaic106@yahoo.com">kimwaic106@yahoo.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks for the reply.<br><br>"What's the platform ?"<br><br>Windows XP fp 2<br><br>"Version of wxPython"<br><br>wxPython2.5-win32-unicode-2.5.4.1-py23.exe<br><br>"and of Python ?"<br><br>2.3.5
<br><br>"Do the Pythoncard samples work OK ?"<br><br>Yes.<br><br>"How about the wxPython demos ?"<br><br>I don't see any demo ap in the wxPython directory.<br><br>I am beginning to wonder if it has to do with the
<br>keyPress event I am trying. This is what I am doing:<br><br>#*********<br> def on_tfStudy_keyPress(self, event):<br> keyCode = event.keyCode<br> if keyCode==13 :<br> ...some processing code...
<br> else:<br> event.skip()<br>#*********<br><br>Without this event, the program doesn't crash.<br><br><br><br>Thanks,<br><br>--<br>John<br><br><br><br><br>-----Original Message-----<br>From: <a href="mailto:pythoncard-users-admin@lists.sourceforge.net">
pythoncard-users-admin@lists.sourceforge.net</a><br>[mailto:<a href="mailto:pythoncard-users-admin@lists.sourceforge.net">pythoncard-users-admin@lists.sourceforge.net</a>]<br>On Behalf Of Liam Clarke<br>Sent: Friday, June 03, 2005 4:57 AM
<br>To: <a href="mailto:pythoncard-users@lists.sourceforge.net">pythoncard-users@lists.sourceforge.net</a><br>Subject: Re: [Pythoncard-users] TextField bug?<br><br><br><br><br><br>On 6/3/05, Alex Tweedly <<a href="mailto:alex@tweedly.net">
alex@tweedly.net</a>> wrote:<br><a href="mailto:kimwaic888-pythoncard@yahoo.com">kimwaic888-pythoncard@yahoo.com</a> wrote:<br><br>>Hello list,<br>><br>>I am having touble with textfield objects in<br>>Pythoncard - I am using the latest version downloaded
<br><br>>from <a href="http://www.pythoncard.org">www.pythoncard.org</a> (ver 0.81?).<br>><br>>I have a no-brainer application and when I run it,<br>the<br>>moment I hit a key when inside a textfield, I get an
<br>>exception in class point within _core.py, method<br>>__getitem__. The code says:<br>><br>> def __getitem__(self, index):<br>> return self.Get()[index]<br>><br>>and it's choking on indexing out-of-range.
<br>><br>>I've checked and the size of self.Get() is 2 and the<br>>value of index is 2 and that's why it crashed.<br>><br>>As I said, this is a no-brainer ap (just a textfield<br>>and nothing else). What's wrong?
<br>><br>><br>><br>What's the platform ? Version of wxPython, and of<br>Python ?<br>Do the Pythoncard samples work OK ?<br>How about the wxPython demos ?<br><br>--<br>Alex Tweedly <a href="http://www.tweedly.net">
http://www.tweedly.net</a><br><br><br><br>--<br>No virus found in this outgoing message.<br>Checked by AVG Anti-Virus.<br>Version: 7.0.322 / Virus Database: 267.5.2 - Release<br>Date: 03/06/2005<br><br><br><br>-------------------------------------------------------
<br>This <a href="http://SF.Net">SF.Net</a> email is sponsored by Yahoo.<br>Introducing Yahoo! Search Developer Network - Create<br>apps using Yahoo!<br>Search APIs Find out how you can build Yahoo! directly<br>into your own
<br>Applications - visit<br><a href="http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005">http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005</a><br>_______________________________________________<br>Pythoncard-users mailing list
<br><a href="mailto:Pythoncard-users@lists.sourceforge.net">Pythoncard-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/pythoncard-users">https://lists.sourceforge.net/lists/listinfo/pythoncard-users
</a><br><br><br><br><br><br>Ai, please post the whole error message, is _core.py<br>part of the Pythoncard package? I get the feeling it's<br>a part of wxPython.<br>--<br>'There is only one basic human right, and that is to
<br>do as you damn well please.<br>And with it comes the only basic human duty, to take<br>the consequences.'<br><br><br><br>-------------------------------------------------------<br>This <a href="http://SF.Net">SF.Net</a>
email is sponsored by: NEC IT Guy Games. How far can you shotput<br>a projector? How fast can you ride your desk chair down the office luge track?<br>If you want to score the big prize, get to know the little guy.<br>Play to win an NEC 61" plasma display:
<a href="http://www.necitguy.com/?r=20">http://www.necitguy.com/?r=20</a><br>_______________________________________________<br>Pythoncard-users mailing list<br><a href="mailto:Pythoncard-users@lists.sourceforge.net">Pythoncard-users@lists.sourceforge.net
</a><br><a href="https://lists.sourceforge.net/lists/listinfo/pythoncard-users">https://lists.sourceforge.net/lists/listinfo/pythoncard-users</a><br></blockquote></div><br><br><br>-- <br>'There is only one basic human right, and that is to do as you damn well please.
<br>And with it comes the only basic human duty, to take the consequences.'