471,573 Members | 1,367 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,573 software developers and data experts.

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 1563

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
reply views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.