def addItem(self, *args):
        nargs = len(args)
        if nargs == 2:
            caption, command = args
            return self.addItem(caption, None, command)
        elif nargs == 3:
            caption, icon, command = args
            if caption is None:
                raise ValueError, 'caption cannot be null'
            newItem = MenuItem(caption, icon, command, self)
            self._menuItems.append(newItem)
            self.requestRepaint()
            return newItem
        else:
            raise ValueError, 'invalid number of arguments'
Return the resource corresponding to a single filter
dataset/ETHPy150Open rwl/muntjac/muntjac/ui/menu_bar.py/MenuBar.addItem--crossover with--dataset/ETHPy150Open ducksboard/libsaas/libsaas/services/pipedrive/service.py/Pipedrive.condition_filter