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 gui. The GUI should not block while the other thread is running. For this I thougt about queues and wrote something like this: def do_something(gui): # Here it normally does something gui.queue.put(gui.new) class GuiFrame(wx.Frame): def __init__(self, parent, id): wx.Frame.__init__(self, parent, id, title="Test")