简体   繁体   English

Pyqt关闭窗口运行但不起作用

[英]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. 但是以某种方式..quit()不会关闭窗口。 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
app=QtGui.QApplication(sys.argv)
app.exit()

solved this 解决了这个

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM