def paintContent(self, target):

        # Superclass writes any common attributes in the paint target.
        super(MenuBar, self).paintContent(target)

        target.addAttribute(VMenuBar.OPEN_ROOT_MENU_ON_HOWER,
                self._openRootOnHover)

        if self.isHtmlContentAllowed():
            target.addAttribute(VMenuBar.HTML_CONTENT_ALLOWED, True)

        target.startTag('options')

        if self._submenuIcon is not None:
            target.addAttribute('submenuIcon', self._submenuIcon)

        if self.getWidth() > -1:
            target.startTag('moreItem')
            target.addAttribute('text', self._moreItem.getText())
            if self._moreItem.getIcon() is not None:
                target.addAttribute('icon', self._moreItem.getIcon())
            target.endTag('moreItem')

        target.endTag('options')
        target.startTag('items')

        # This generates the tree from the contents of the menu
        for item in self._menuItems:
            self.paintItem(target, item)

        target.endTag('items')
Get whether or not the frame is linked.
dataset/ETHPy150Open rwl/muntjac/muntjac/ui/menu_bar.py/MenuBar.paintContent--crossover with--dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/docking/q_dock_frame.py/QDockFrame.isLinked