def creatMenus(self, menusettings):
        for menu in menusettings['menus']:
            setattr(
                self,
                menu['trigger'] % '%smenu',
                self.addMenu(u'%s' % menu['name'])
            )
            submenu = getattr(self, '%smenu' % menu['trigger'])
            for menuaction in menu['actions']:
                if 'type' in menuaction and menuaction['type'] == "submenu":
                    self.createSubAction(menu['trigger'], menuaction)
                else:
                    self.creatAction(submenu, menuaction)
dataset/ETHPy150Open dragondjf/PFramer/qframer/fmenubar.py/FMenuBar.creatMenus/swapped operands of `%`