'Deprecated: return the names or labels of all possible items.
Includes disabled items, which may be misleading for some use cases.'

def possible_items(self, by_label=False):

    deprecation('[item.name    for    item    in    self.items]')
    if by_label:
        res = []
        for o in self.items:
            for l in o.get_labels():
                if l.text:
                    res.append(l.text)
                    break
            else:
                res.append(None)
        return res
    return [o.name for o in self.items]
