gui/gui_mainLayout.py
def cancel_planarrad(self):
        """
        This function cancels PlanarRad.
        """

        """
        This function needs to be tested. We don't know if she works.
        """

        if (self.is_running == True) & (self.ui.tabWidget.currentIndex() == TabWidget.NORMAL_MODE):
            cancel = QtGui.QMessageBox.question(self.ui.cancel, 'Cancel PlanarRad', "Are you sure to cancel ?",
                                                QtGui.QMessageBox.Yes,
                                                QtGui.QMessageBox.No)

            if cancel == QtGui.QMessageBox.Yes:
                self.is_running = False
                os.kill(self.p.pid, signal.SIGTERM)

                print("Necessary to check if cancel_planarrad works well !")
                self.ui.progressBar.reset()
            else:
                pass
def cancel_planarrad(self):
        """
        This function needs to be tested. We don't know if she works.
        """

        if (self.is_running == True) & (self.ui.tabWidget.currentIndex() == TabWidget.NORMAL_MODE):
            cancel = QtGui.QMessageBox.question(self.ui.cancel, 'Cancel PlanarRad', "Are you sure to cancel ?",
                                                QtGui.QMessageBox.Yes,
                                                QtGui.QMessageBox.No)

            if cancel == QtGui.QMessageBox.Yes:
                self.is_running = False
                os.kill(self.p.pid, signal.SIGTERM)

                print("Necessary to check if cancel_planarrad works well !")
                self.ui.progressBar.reset()
            else:
                pass
def cancel_planarrad ( self ) : """
        This function needs to be tested. We don't know if she works.
        """ if ( self . is_running == True ) & ( self . ui . tabWidget . currentIndex ( ) == TabWidget . NORMAL_MODE ) : cancel = QtGui . QMessageBox . question ( self . ui . cancel , 'Cancel PlanarRad' , "Are you sure to cancel ?" , QtGui . QMessageBox . Yes , QtGui . QMessageBox . No ) if cancel == QtGui . QMessageBox . Yes : self . is_running = False os . kill ( self . p . pid , signal . SIGTERM ) print ( "Necessary to check if cancel_planarrad works well !" ) self . ui . progressBar . reset ( ) else : pass
This function cancels PlanarRad.
This function cancels PlanarRad .