def cancel_planarrad(self):
"""<STR_LIT>"""<EOL>if (self.is_running == True) & (self.ui.tabWidget.currentIndex() == TabWidget.NORMAL_MODE):<EOL><INDENT>cancel = QtGui.QMessageBox.question(self.ui.cancel, '<STR_LIT>', "<STR_LIT>",<EOL>QtGui.QMessageBox.Yes,<EOL>QtGui.QMessageBox.No)<EOL>if cancel == QtGui.QMessageBox.Yes:<EOL><INDENT>self.is_running = False<EOL>os.kill(self.p.pid, signal.SIGTERM)<EOL>print("<STR_LIT>")<EOL>self.ui.progressBar.reset()<EOL><DEDENT>else:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>
This function cancels PlanarRad.