erbal
erbal

Reputation: 727

Pyqt close window runs but doesn't work

I have a function which takes care of the closing of my application. But somehow the ..quit() doesn't close the window. It doesn't stuck into an infinity loop or something like that.

def onExit():
    QtCore.QCoreApplication.instance().quit
    sys.exit(app)
    shutdown = 1
    #set the shutdown var to the child process
    parent.send(shutdown)
    logProc.join()
    return

Upvotes: 0

Views: 548

Answers (1)

erbal
erbal

Reputation: 727

app=QtGui.QApplication(sys.argv)
app.exit()

solved this

Upvotes: 0

Related Questions