def creatAction(self, submenu, menuaction):
        if 'checkable' in menuaction:
            setattr(
                self,
                '%sAction' % menuaction['trigger'],
                QAction(
                    QIcon(QPixmap(menuaction['icon'])),
                    menuaction['name'] % u'%s',
                    self,
                    checkable=menuaction['checkable']
                )
            )
        else:
            setattr(
                self,
                '%sAction' % menuaction['trigger'],
                QAction(
                    QIcon(QPixmap(menuaction['icon'])),
                    u'%s' % menuaction['name'],
                    self,
                )
            )

        action = getattr(self, '%sAction' % menuaction['trigger'])
        action.setShortcut(QKeySequence(menuaction['shortcut']))
        submenu.addAction(action)
        self.qactions.update({menuaction['trigger']: action})
dataset/ETHPy150Open dragondjf/PFramer/qframer/fmenubar.py/FMenuBar.creatAction/swapped operands of `%`