how to get a file close event in python,app.exec_()