How to use multicore python with PyQt4 process?

爱⌒轻易说出口 提交于 2019-12-01 12:03:23
  • Spawn a QThread.
  • The QThread can farm out tasks to the multiprocessing Pool. You might use pool.apply_async() which has a callback parameter.
  • The callback parameter allows you to specify a function which is called when the target function completes.
  • The callback runs in the QThread, and is sent the return value of the target function as its one and only argument.
  • Each time the callback function runs, you can update the GUI to indicate the progress.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!