Skip to content Skip to sidebar Skip to footer

Python: Queue Without Blocking

I have a question about queues. I am creating a GUI with wxpython, and in the program I need to do something in a separate thread. After the thread finished, I have to modify the g

Solution 1:

I suggest you to use wx.CallAfter(). You may find some useful examples here. Also you can use pubsub module to send messages to your GUI. Then your GUI won't block due to other threads.

Here is a nice blog that I read when I had a similar issue like yours. You can also find some other questions on SO based that may assist you to understand this concept here, here, & here

Post a Comment for "Python: Queue Without Blocking"