Hello,
From all of the FAQs out there, and from personal experience, is it just not manageable to mix wxPython and threading? I would have thought that launching a thread would have been relatively benign. What is it about keeping your UI code in the main thread and putting, in my case, networking code in a thread?
I’m trying to manage a fairly low-level client interaction in the form of a traditional chat program, where text in a text box is sent to the server and the response is sent to a history multiline text box. I am learning threading and wxPython all at once, here, so I know that mixing the two is not necessarily a simple task. But I thought I was “almost there”. I successfully send the text to the server, and I finally have managed to capture the response and fire a handler. But I’ve yet to actually successfully pass the text itself, and I am finding that the second time I push the button to send text, it remains permanently in a depressed state.
Also, and this may be more about WingIDE, I am finding it difficult to put breakpoints that actually stop code. Breakpoints only appear to work in the main thread.
Is there someone out there on the other side of this threading/UI learning curve that can spare some time to help me through the final points? I want to learn how to do this correctly.
Thanks!
Vania