Implementing my own event loop in a wxPython application

前端 未结 3 1584
情书的邮戳
情书的邮戳 2021-01-25 12:27

I’m writing a wxPython application that will be doing quite a bit of data analysis and display. The way I’ve written it so far has led to problems when two threads try to change

3条回答
  •  清酒与你
    2021-01-25 13:03

    Just post wx.Events to some object (typically the application or the main window). They will be processed in FIFO order, although they will be intermixed with the other GUI events happening on the main thread itself. Of course, you also need to have actual handlers for these events implementing whatever logic you need.

提交回复
热议问题