def reject(self):
        """Reimplement Qt method"""
        if self.arraywidget is not None:
            for index in range(self.stack.count()):
                self.stack.widget(index).reject_changes()
        QDialog.reject(self)
def reject ( self ) : if self . arraywidget is not None : for index in range ( self . stack . count ( ) ) : self . stack . widget ( index ) . reject_changes ( ) QDialog . reject ( self )
Reimplement Qt method