wxPython, searching, and threads

James Matthews nytrokiss at gmail.com
Thu Jul 19 19:19:34 CEST 2007


I have seen this thread for a while and i do not see it on the wxpython list
so i am posting it there now and will post a reply if i still see this
later!

James

On 7/19/07, kyosohma at gmail.com <kyosohma at gmail.com> wrote:
>
> On Jul 18, 3:15 pm, Benjamin <musiccomposit... at gmail.com> wrote:
> > Hello! I am writing a search engine with wxPython as the GUI. As the
> > search thread returns items, it adds them to a Queue which is picked
> > up by the main GUI thread calling itself recursively with
> > wx.CallAfter. These are then added to a ListCtrl. This works fine for
> > small searches, but with larger and longer searchs the GUI is clogged
> > and won't respond. I suspect (I may be wrong) that there are so many
> > results being sent to the ListCtrl that the event loop doesn't have
> > time to respond to events. I've tried buffering the results before
> > sending them to the GIU, but that doesn't help at all. Please advise.
>
> I think what you need to look at is
> http://wiki.wxpython.org/LongRunningTasks
>
> That's what the people on the wxPython list usually recommend when
> doing what you're doing. I've used the techniques there and they work
> great!
>
> Mike
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
http://www.goldwatches.com/watches.asp?Brand=14
http://www.jewelerslounge.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070719/15ddf30b/attachment.html>


More information about the Python-list mailing list