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