python - 如何运行 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()
解决方案
推荐阅读
- ios - Metal中的核函数
- ios - UISearchController:昏暗的覆盖覆盖搜索栏本身
- python - 将值从 python 类对象附加到 Python 中的另一个类对象
- c# - 使用相对路径从共享布局调用 mvc razor 视图中的函数,即 _layout.cshtml
- graphql - 如何使用 apollo ios 客户端实现 graphql 订阅
- android - ScrollView 在片段中不起作用
- php - 最后一个值没有存储在codeigniter会话中的数组中
- oracle - 如何将 oracle 日期格式转换为 IST 格式?
- c# - 在 Visual Studio 代码中构建现有代码
- r - 与上一时期相比,显示增加/减少值的变异列