[PyKDE] PyQt-x11-gpl-3.4/examples2/widgets.py: buggy or did I mis-install?
Alex Martelli
aleaxit at yahoo.com
Fri Nov 8 22:26:01 GMT 2002
On Friday 08 November 2002 22:16, Phil Thompson wrote:
...
> > Traceback (most recent call last):
> > File "widgets.py", line 480, in lineEditTextChanged
> > txt = txt + newText
> > TypeError: cannot concatenate 'str' and 'instance' objects
> >
> >
> > The other widgets appear to work fine with some cursory testing.
>
> It looks like you are running the Qt v2 examples instead of the Qt v3
> ones.
Silly me, you're right. However, running example3/widgets.py instead
STILL shows a traceback whenever I type in the edit-text:
Traceback (most recent call last):
File "widgets.py", line 470, in lineEditTextChanged
self.msg.setText( "Line edit text: " + newText )
TypeError: cannot concatenate 'str' and 'instance' objects
Alex
More information about the PyQt
mailing list