def closeEvent(self, event): print('Closing now')