[Tutor] [Pythoncard-users] TextField bug?

Liam Clarke cyresse at gmail.com
Fri Jun 3 22:45:29 CEST 2005


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 - http://www.rafb.net/paste/ 
it'd be a lot easier to figure out. 


On 6/4/05, John Henry <kimwaic106 at yahoo.com> wrote:
> 
> 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: pythoncard-users-admin at lists.sourceforge.net
> [mailto:pythoncard-users-admin at lists.sourceforge.net]
> On Behalf Of Liam Clarke
> Sent: Friday, June 03, 2005 4:57 AM
> To: pythoncard-users at lists.sourceforge.net
> Subject: Re: [Pythoncard-users] TextField bug?
> 
> 
> 
> 
> 
> On 6/3/05, Alex Tweedly <alex at tweedly.net> wrote:
> kimwaic888-pythoncard at yahoo.com wrote:
> 
> >Hello list,
> >
> >I am having touble with textfield objects in
> >Pythoncard - I am using the latest version downloaded
> 
> >from www.pythoncard.org <http://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 <http://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
> Pythoncard-users at lists.sourceforge.net
> 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.'
> 
> 
> 
> -------------------------------------------------------
> This SF.Net <http://SF.Net> email is sponsored by: NEC IT Guy Games. How 
> far can you shotput
> a projector? How fast can you ride your desk chair down the office luge 
> track?
> If you want to score the big prize, get to know the little guy.
> Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
> _______________________________________________
> Pythoncard-users mailing list
> Pythoncard-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pythoncard-users
> 



-- 
'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.'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20050604/c430f0f3/attachment-0001.html


More information about the Tutor mailing list