def closeEvent( self, event ):
        """
        Overloads the close event for this widget to make sure that the data \
        is properly saved before exiting.
        
        :param      event | <QCloseEvent>
        """
        if ( not (self.saveOnClose() and self.checkForSave()) ):
            event.ignore()
        else:
            super(XScintillaEdit, self).closeEvent(event)
def closeEvent ( self , event ) : if ( not ( self . saveOnClose ( ) and self . checkForSave ( ) ) ) : event . ignore ( ) else : super ( XScintillaEdit , self ) . closeEvent ( event )
Overloads the close event for this widget to make sure that the data \
        is properly saved before exiting.
        
        :param      event | <QCloseEvent>