Pygame not returning events while embedded in PyQt

前端 未结 1 1009
鱼传尺愫
鱼传尺愫 2021-01-24 04:04

I\'m testing out an application and the UI uses PyQt4 with Pygame embedded into it. It uses a timer to \"update\" itself so to speak and in the timerEvent function Pygame attemp

相关标签:
1条回答
  • 2021-01-24 04:44

    You can not.


    TL; DR;

    You cannot and should not combine 2 libraries that have their own event loop, for example now the Qt eventloop is blocking the pygame event loop.

    0 讨论(0)
提交回复
热议问题