def reject(self):
        """Override Qt method"""
        if not self.is_fade_running():
            key = Qt.Key_Escape
            self.key_pressed = key
            self.sig_key_pressed.emit()
def reject ( self ) : if not self . is_fade_running ( ) : key = Qt . Key_Escape self . key_pressed = key self . sig_key_pressed . emit ( )
Override Qt method