Menu

#40 PythonCard -> wxPython -> _core.py -> class point bug

open
nobody
None
5
2005-02-23
2005-02-23
Anonymous
No

I've built a Python application using PythonCard 1.9
and Python 2.3 running under Windows XP. Everything
works except that when I use the keyboard instead of
the mouse to do certain operations in a data entry
field (like Shift-Home), the program stops at line 1014
of wx-2.5.3-msw.ansi\wx\_core.py.

def __getitem__(self, index):
try:
x = self.Get()[index]
except IndexError:
raise IndexError, "tuple index %d out of
range of %d"
%(index,len(self.Get()))
return x

I downloaded the current version of wxPython (2.5.3.1)
and tried again. Same problem except that they've
removed the exception handler and simply go with:

def __getitem__(self, index): return
self.Get()[index]

at line 1012. The debugging shows that someone is
calling this routine repeatedly with index greater then
the left of self.Get().

This keyboard problem occurs with other widgets too.
For instance, with the combobox, if I hit a down arrow,
it would fail the same way.

Regards,

John Henry
kimwaic888-pythoncard@yahoo.com

Discussion

  • Kevin Altis

    Kevin Altis - 2005-02-23

    Logged In: YES
    user_id=228025

    PythonCard 1.9????

    If this is an issue with the latest PythonCard, please confirm, but it sounds
    like you are not using the latest version.

     
  • Nobody/Anonymous

    Logged In: NO

    Yes I am using the latest version. In my message, I
    indicated that:

    "I downloaded the current version of wxPython (2.5.3.1)
    and tried again. Same problem except that they've"

    Thank you,

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.