PyQt: app.exec_() Stoppt alle folgenden code ausgeführt

Ich habe einen code, der wie folgt aussieht:

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'

Das problem ist, dass sobald app.exec_() ausgeführt wird, nichts ist bis ich das Fenster schließen, erscheint.

Wie kann ich weiterhin mit dem code?

InformationsquelleAutor cgf | 2014-04-17

Schreibe einen Kommentar