(self)
Cancel current pending or executing task.
Cancel current pending or executing task.
Cancel current pending or executing task .
def cancel(self):
        """
        Cancel current pending or executing task.
        """
        if self.__watcher is not None:
            self.__cancel_task()
            self.__clear_running_state()
            self.setStatusMessage("Cancelled")
            self.summary_text.setText(
                "<div>Cancelled<br/><small>Press 'Reload' to try again</small></div>"
            )
def cancel ( self ) : if self . __watcher is not None : self . __cancel_task ( ) self . __clear_running_state ( ) self . setStatusMessage ( "Cancelled" ) self . summary_text . setText ( "<div>Cancelled<br/><small>Press 'Reload' to try again</small></div>" )