def METHOD_NAME(self):
    if self.currentTask:
        name = self.currentTask.name
        ok = 1
        if ((name == 'dataLoop') or
            (name == 'resetPrevTransform') or
            (name == 'tkLoop') or
            (name == 'eventManager') or
            (name == 'igLoop')):
            ok = askokcancel('TaskManagerControls',
                             'Remove: %s?' % name,
                             parent = self.parent,
                             default = 'cancel')
        if ok:
            self.taskMgr.remove(self.currentTask)
            self.updateTaskListBox()