google-like search control

Is there a goole-like search control worked out by somebody? If not, how to implement one? I need a result list with values fetched out from my database instead of the one contains “recent search key words”…

Thanks

2009-03-31

···

artman328

Thank you, Karsten.

It’s what I need.

2009-03-31

···

artman328


发件人: Karsten Hilbert

发送时间: 2009-03-31 21:27:29

收件人: wxpython-users

抄送:

主题: Re: [wxpython-users] google-like search control

On Tue, Mar 31, 2009 at 09:17:18PM +0800, artman328 wrote:

Is there a goole-like search control worked out by

somebody? If not, how to implement one? I need a result list

with values fetched out from my database instead of the one

contains “recent search key words”…

We use this sort of thing in GNUmed extensively. There’s a

text field input class here:

http://cvs.savannah.gnu.org/viewvc/gnumed/gnumed/client/wxpython/gmPhraseWheel.py?root=gnumed&view=log

which uses match providers:

http://cvs.savannah.gnu.org/viewvc/gnumed/gnumed/client/pycommon/gmMatchProvider.py?root=gnumed&view=log

to look up matches for input. One such type of match

provider takes SQL queries (look for SQL2). There’s abundant

examples all over our code.

Karsten

GPG key ID E4071346 @ wwwkeys.pgp.net

E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

It's somewhat complex to handle. Feel free to ask for help
and suggest improvements. I plan on eventually streamlining
the code and submitting it to wxPython proper for
consideration.

Karsten

···

On Tue, Mar 31, 2009 at 09:34:09PM +0800, artman328 wrote:

Thank you, Karsten.
It's what I need.

--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

It’s a great work!

I’ll try to tear it down from your project, so I can test it easily first.

2009-03-31

···

artman328


发件人: Karsten Hilbert

发送时间: 2009-03-31 21:58:49

收件人: wxpython-users

抄送:

主题: Re: Re: [wxpython-users] google-like search control

On Tue, Mar 31, 2009 at 09:34:09PM +0800, artman328 wrote:

Thank you, Karsten.

It’s what I need.

It’s somewhat complex to handle. Feel free to ask for help

and suggest improvements. I plan on eventually streamlining

the code and submitting it to wxPython proper for

consideration.

Karsten

GPG key ID E4071346 @ wwwkeys.pgp.net

E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

It’s a good news. Thank you. I’ll wait 14.gif

2009-03-31

···

artman328


发件人: Karsten Hilbert

发送时间: 2009-03-31 22:35:53

收件人: wxpython-users

抄送:

主题: Re: Re: Re: [wxpython-users] google-like search control

On Tue, Mar 31, 2009 at 10:25:12PM +0800, artman328 wrote:

It’s a great work!

I’ll try to tear it down from your project, so I can test it easily first.

I am currently ripping out dependancies. Will commit in an hour or so.

Karsten

GPG key ID E4071346 @ wwwkeys.pgp.net

E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

I’ve got it and known how to cope with the issue you mentioned.

Thanks for your help.

2009-03-31

···

artman328


发件人: Karsten Hilbert

发送时间: 2009-03-31 23:12:59

收件人: wxpython-users

抄送:

主题: Re: Re: Re: [wxpython-users] google-like search control

On Tue, Mar 31, 2009 at 10:39:16PM +0800, artman328 wrote:

It’s a good news. Thank you. I’ll wait

I committed the phrasewheel code. All that’s left now is the

dependancy on gmTools and that’s only used for

capitalization stuff so it’s really quite obvious how to

replace it or rip it out.

I haven’t modified the match providers yet as it is easily

apparent how to write your own.

Karsten

GPG key ID E4071346 @ wwwkeys.pgp.net

E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users