473,581 Members | 3,096 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

wxPython ListCtrl_edit and TextEditMixin on mac OS X 10.4

Hello,

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,
listmix.ListCtr lAutoWidthMixin ,
listmix.TextEdi tMixin):

def __init__(self, parent, ID, pos=wxDefaultPo sition,
size=wxDefaultS ize, style=0):
wxListCtrl.__in it__(self, parent, ID, pos, size, style)
listmix.ListCtr lAutoWidthMixin .__init__(self)
#listmix.TextEd itMixin.__init_ _(self)
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 ?
main()
File "/Users/einstein/python/wing/projects/vokabeln/wxVokabelApp.py ",
line 23, in main
application.Mai nLoop()
File "/Library/Python/2.3/wx-2.6-mac-unicode/wx/_core.py", line 7493, in
MainLoop
wx.PyApp.MainLo op(self)
File "/Library/Python/2.3/wx-2.6-mac-unicode/wx/_core.py", line 6926, in
MainLoop
return _core_.PyApp_Ma inLoop(*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
__getitem__
def __getitem__(sel f, 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
http://pythonmac.org/packages/TigerP...Compat.pkg.zip

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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
11889
by: SeeBelow | last post by:
Do many people think that wxPython should replace Tkinter? Is this likely to happen? I ask because I have just started learning Tkinter, and I wonder if I should abandon it in favor of wxPython. Mitchell Timin -- "Many are stubborn in pursuit of the path they have chosen, few in
25
3337
by: BJörn Lindqvist | last post by:
See: http://www.wxpython.org/quotes.php. especially: "wxPython is the best and most mature cross-platform GUI toolkit, given a number of constraints. The only reason wxPython isn't the standard Python GUI toolkit is that Tkinter was there first." - Guido van Rossum Guess, that answers my question, but isn't "Tkinter was there first" a...
1
2557
by: timothy.williams | last post by:
I'm trying to install wxPython 2.5.3.1 using Python 2.3.2 on a Fedora 2 machine. I have python in a non-standard place, but I'm using --prefix with the configure script to point to where I have everything. The make install in $WXDIR seemed to go fine. I have the libxw* libraries in my lib/ directory libwx_base-2.5.so@ ...
1
2974
by: James Stroud | last post by:
Hello All, I will soon have an excuse to install a new operating system on my computer. I would like to know exactly what operating system I should have so that I can get wxPython going. wxPython is my only hold-out on my current system. wxPython seems to need gnome. So I have tried to build garnome and it didn't build all the way..and,...
1
2532
by: Fabio Pliger | last post by:
Hi all, i'm working on a very large project using wx 2.5... On one frame i have a wx.lib.mixins.listctrl widget, wich is a listctrl extended with the possibility to edit the columns text entrys.... Anyone know if it's possible (or if there's a widget...) to have also the possbility to have a comboBox in the list (with the text edit entry)?...
25
4265
by: TPJ | last post by:
GUI's etc: PyGtk on Windows "(...) So if someone develops mainly for X and just wants to make sure that it is not impossible to run on Windows, you can use PyGTK. (...)", July 2nd, 1999 pyGTK on Windows "(...) > can i use pyGTK under > Windows???
22
5040
by: Glurt Wuntal | last post by:
I am a newbie with Python. It's a great language, but I would like to be able to present a simple gui menu for some of my scripts; something better than using 'raw_input' prompts. Any recommendations for a program that will allow me to create the gui screens? Something useable in Linux. thanks.
0
1651
by: Robin Dunn | last post by:
Announcing ---------- The 2.6.3.0 release of wxPython is now available for download at http://wxpython.org/download.php. There have been many enhancements and fixes implemented in this version, many of which are listed below and at http://wxpython.org/recentchanges.php. What is wxPython?
4
2971
by: stef | last post by:
hello, I'm trying to move from Delphi to Python (move from MatLab to Python already succeeded, also thanks to this discussion group). From the discussions in this list about "the best" GUI for Python, it now seems to me that wxPython is thé choice for my kind of applications. I've no experience with wxPython yet, I just run a few...
0
7860
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8139
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8166
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6546
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5667
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3813
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2298
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1398
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1127
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.