[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] PyQt4 QStringList (again)
From: Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date: 2006-01-26 14:26:20
Message-ID: 200601261426.20546.phil () riverbankcomputing ! co ! uk
[Download RAW message or body]
On Thursday 26 January 2006 2:01 pm, Doug Bell wrote:
> Hi,
>
> I didn't get any replies to my earlier message about QStringList in
> PyQt4, but maybe it wasn't clear. So I'll try again.
>
> In the example programs, QStringLists are created using stream
> operators:
>
> s = QtCore.QStringList()
> s << 'String 1' << 'String 2'
>
> This method works, but it isn't very Pythonic. If you already have a
> Python list of strings, it requires an extra iteration through the list.
>
> My preference would be for this to work:
>
> s = QtCore.QStringList(['String 1', 'String 2']) # doesn't work
>
> Is this possible? The use of QStringLists to initialize widgets is more
> common in Qt4 than it was in Qt3, so it would be nice to have an easier
> implementation.
I haven't forgotten it - just hasn't reached the top of the pile yet.
Phil
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic