def do(self): action = CustomAction() editor = Editor(self.mainWindow(), action=action) if editor.exec_() == editor.Accepted: action.setSource(editor.source()) cmd = commands.AddActionCommand(configuration=self.configuration(), action=action) self.history().run(cmd)
def do(self): cmd = commands.AddActionCommand(configuration=self.configuration(), action=InvertPadAxisAction()) self.history().run(cmd)
def do(self): cmd = commands.AddActionCommand(configuration=self.configuration(), action=GyroAction()) self.history().run(cmd)
def do(self): cmd = commands.AddActionCommand(configuration=self.configuration(), action=DisableButtonAction()) self.history().run(cmd)