wxPython and threads

James Matthews nytrokiss at gmail.com
Wed Jul 18 17:37:49 CEST 2007


Sounds like a race condition. is List Ctrl waiting for the gui to return?
Maybe make the processing more then one thread!

On 7/17/07, Stef Mientki <S.Mientki-nospam at mailbox.kun.nl> wrote:
>
> Benjamin wrote:
> > I'm writing a search engine in Python with wxPython as the GUI. I have
> > the actual searching preformed on a different thread from Gui thread.
> > It sends it's results through a Queue to the results ListCtrl which
> > adds a new item. This works fine or small searches, but when the
> > results number in the hundreds, the GUI is frozen for the duration of
> > the search. I suspect that so many search results are coming in that
> > the GUI thread is too busy updating lists to respond to events. I've
> > tried buffer the results so there's 20 results before they're sent to
> > the GUI thread and buffer them so the results are sent every .1
> > seconds. Nothing helps. Any advice would be great.
> >
> maybe you'ld better ask this question in the wxPython discussion group:
>
> wxPython-users at lists.wxwidgets.org
>
> cheers,
> Stef
> --
> 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/20070718/9693c8d1/attachment.html>


More information about the Python-list mailing list