def closeEvent ( self , event ) : if self . closing ( True ) : event . accept ( ) else : event . ignore ( )
pyside python close event
closeEvent reimplementation
def closeEvent(self, event):
        """closeEvent reimplementation"""
        if self.closing(True):
            event.accept()
        else:
            event.ignore()