def hasChildren(self):
        return not self.isSeparator() and self._itsChildren is not None
Checks if the item has children (if it is a sub-menu).
dataset/ETHPy150Open rwl/muntjac/muntjac/ui/menu_bar.py/MenuItem.hasChildren