'Set the function selection list in TUI session.'

def set_func_list(self):

    for ip in range(2):
        (choice, defaults, slices) = RetrieveData.get_choice(ip)
        if os.path.isfile(self.custom):
            choice.insert(0, [4, 1, 0, 'customize'])
            defaults[4] = [1]
            for i in range(len(slices)):
                slices[i] += 1
            slices.insert(0, 0)
        self.choice[ip] = choice
        self.slices[ip] = slices
        funcs = []
        for func in choice:
            if (func[1] in defaults[func[0]]):
                funcs.append(1)
            else:
                funcs.append(0)
        self._funcs[ip] = funcs
