def addItemBefore(self, caption, icon, command, itemToAddBefore):
        if caption is None:
            raise ValueError, 'caption cannot be null'

        newItem = MenuItem(caption, icon, command, self)

        if itemToAddBefore in self._menuItems:
            try:
                index = self._menuItems.index(itemToAddBefore)
            except ValueError:
                index = -1
            self._menuItems.insert(index, newItem)
        else:
            self._menuItems.append(newItem)

        self.requestRepaint()

        return newItem
Whether we've already downloaded this URL.
dataset/ETHPy150Open rwl/muntjac/muntjac/ui/menu_bar.py/MenuBar.addItemBefore--crossover with--dataset/ETHPy150Open BradNeuberg/cloudless/src/annotate/train/scripts/download_planetlabs.py/does_download_exist