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> &lt;<a href="mailto:kimwaic106@yahoo.com">kimwaic106@yahoo.com</a>&gt; 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>&quot;What's the platform ?&quot;<br><br>Windows XP fp 2<br><br>&quot;Version of wxPython&quot;<br><br>wxPython2.5-win32-unicode-2.5.4.1-py23.exe<br><br>&quot;and of Python&nbsp;&nbsp;?&quot;<br><br>2.3.5
<br><br>&quot;Do the Pythoncard samples work OK ?&quot;<br><br>Yes.<br><br>&quot;How about the wxPython demos ?&quot;<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.&nbsp;&nbsp;This is what I am doing:<br><br>#*********<br>&nbsp;&nbsp;&nbsp;&nbsp;def on_tfStudy_keyPress(self, event):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;keyCode = event.keyCode<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if keyCode==13 :<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...some processing code...
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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 &lt;<a href="mailto:alex@tweedly.net">
alex@tweedly.net</a>&gt; wrote:<br><a href="mailto:kimwaic888-pythoncard@yahoo.com">kimwaic888-pythoncard@yahoo.com</a> wrote:<br><br>&gt;Hello list,<br>&gt;<br>&gt;I am having touble with textfield objects in<br>&gt;Pythoncard - I am using the latest version downloaded
<br><br>&gt;from <a href="http://www.pythoncard.org">www.pythoncard.org</a> (ver 0.81?).<br>&gt;<br>&gt;I have a no-brainer application and when I run it,<br>the<br>&gt;moment I hit a key when inside a textfield, I get an
<br>&gt;exception in class point within _core.py, method<br>&gt;__getitem__.&nbsp;&nbsp;The code says:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;def __getitem__(self, index):<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return self.Get()[index]<br>&gt;<br>&gt;and it's choking on indexing out-of-range.
<br>&gt;<br>&gt;I've checked and the size of self.Get() is 2 and the<br>&gt;value of index is 2 and that's why it crashed.<br>&gt;<br>&gt;As I said, this is a no-brainer ap (just a textfield<br>&gt;and nothing else).&nbsp;&nbsp;What's wrong?
<br>&gt;<br>&gt;<br>&gt;<br>What's the platform ?&nbsp;&nbsp;Version of wxPython, and of<br>Python&nbsp;&nbsp;?<br>Do the Pythoncard samples work OK ?<br>How about the wxPython demos ?<br><br>--<br>Alex Tweedly&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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.&nbsp;&nbsp;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&quot; 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.'