【发布时间】:2023-03-24 21:40:01
【问题描述】:
我的代码如下所示:
app = QApplication(sys.argv)
self.interface = Interface()
# The figure
self.fig = self.interface.fig
self.ax = self.fig.add_subplot(111)
self.interface.show()
app.exec_()
print 'this is not printed'
问题是一旦app.exec_() 被执行,在我关闭弹出的窗口之前什么都没有。
如何继续运行代码?
【问题讨论】: