[PySide] search widget

Frank Rueter | OHUfx frank at ohufx.com
Fri Jun 8 01:52:40 CEST 2012


Thanks Christofer and Boris,

that works fine now.
Great little example! That goes straight into my collection of cool 
reference code, thanks a lot!

frank

On 7/06/12 8:01 PM, boris at pohlers-web.de wrote:
>
> The example uses PyQt, which has QStrings as a datatype, PySide uses 
> normal strings instead.
>
>
>
> Christofer Bertonha schrieb am 07.06.12 09:41:
>
> You can crange to a list of strings eg: ['str1', 'str2']
>
> A more pythonic way
>
> [ ]' s
> Christofer Bertonha
>
> On Jun 7, 2012 3:28 AM, "Frank Rueter | OHUfx" <frank at ohufx.com 
> <mailto:frank at ohufx.com>> wrote:
>
>     Oh cool, would love to see what it does, but QtCore.QStringList()
>     isn't
>     valid in my version of PySide it would seem.
>     Is there a quick fix?
>
>     Anyway, it's late here, I will have a closer look tomorrow. Thanks
>     heaps
>     for the example!
>
>     frank
>
>     On 7/06/12 6:23 PM, simozack wrote:
>     > 2012/6/7 Frank Rueter | OHUfx<frank at ohufx.com
>     <mailto:frank at ohufx.com>>:
>     >> quick question for the more experienced:
>     >> Is there a core widget for text search? I'm after pretty
>     something that
>     >> looks pretty much like this one (at the top):
>     >> http://farm5.static.flickr.com/4042/4574583703_f7be03c653.jpg
>     > Some time ago, I wrote something like that. You can find it here:
>     >
>     https://bitbucket.org/simozack/pyqtexamples/src/f037651e8406/EvolutionSearch.py
>     >
>     > It uses the completion facility of the qt framework for
>     searching text
>     > inside a list of value and it has a callback function you can use to
>     > do something with the value selected, a delay parameter to make the
>     > callback function more or less responsive.
>     >
>     > It was developed with pyqt, but I think there's no problem to use it
>     > with pyside.
>     >
>     > HTH,
>     > Simone
>     _______________________________________________
>     PySide mailing list
>     PySide at qt-project.org <mailto:PySide at qt-project.org>
>     http://lists.qt-project.org/mailman/listinfo/pyside
>
>
>
>
> _______________________________________________
> PySide mailing list
> PySide at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/pyside
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20120608/289ed406/attachment.html>


More information about the PySide mailing list