469,275 Members | 1,802 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,275 developers. It's quick & easy.

wxPython ListCtrl_edit and TextEditMixin on mac OS X 10.4


I am trying to build an editable ListCtrl_edit via TextEditMixin.
It displays o.k. and I can edit the first field with this is the code piece:

class VokabelListCtrl(wxListCtrl,

def __init__(self, parent, ID, pos=wxDefaultPosition,
size=wxDefaultSize, style=0):
wxListCtrl.__init__(self, parent, ID, pos, size, style)
uncommenting the TextEditMixin still renders the ListCtrl, but as soon
as I click into the grid the application crashes with a

IndexError: tuple index out of range

Traceback (innermost last):

File "/Users/einstein/python/wing/projects/vokabeln/wxVokabelApp.py",
line 1, in ?
#!/usr/bin/env python
File "/Users/einstein/python/wing/projects/vokabeln/wxVokabelApp.py",
line 26, in ?
File "/Users/einstein/python/wing/projects/vokabeln/wxVokabelApp.py",
line 23, in main
File "/Library/Python/2.3/wx-2.6-mac-unicode/wx/_core.py", line 7493, in
File "/Library/Python/2.3/wx-2.6-mac-unicode/wx/_core.py", line 6926, in
return _core_.PyApp_MainLoop(*args, **kwargs)
File "/Library/Python/2.3/wx-2.6-mac-unicode/wx/lib/mixins/listctrl.py",
line 497, in OnLeftDown
x,y = evt.GetPosition()
File "/Library/Python/2.3/wx-2.6-mac-unicode/wx/_core.py", line 1117, in
def __getitem__(self, index): return self.Get()[index]
what is my mistake ??? Can anybody give me a hint ?

P.S. I installed the curent wxPython release and applied the following

* download and install

* used multiversion install via adding
o import wxversion
o wxversion.select("2.6")
kind regards,
Aug 4 '05 #1
0 1472

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by SeeBelow | last post: by
25 posts views Thread by BJörn Lindqvist | last post: by
1 post views Thread by timothy.williams | last post: by
1 post views Thread by James Stroud | last post: by
1 post views Thread by Fabio Pliger | last post: by
22 posts views Thread by Glurt Wuntal | last post: by
reply views Thread by Robin Dunn | last post: by
4 posts views Thread by stef | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.