首页 > 解决方案 > 如何运行 QMovie 直到功能完成?

问题描述

电影没有开始。如何运行 QMovie 直到功能完成?

def gogo(self):
    self.movie.start()
    thread = threading.Thread(target=self.plot)
    thread.start()

    # wait here for the result to be available before continuing
    thread.join()
    
    self.movie.stop()

标签: pythonpyqt5qmovie

解决方案


推荐阅读