Example #1
0
    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)
Example #2
0
 def do(self):
     cmd = commands.AddActionCommand(configuration=self.configuration(), action=InvertPadAxisAction())
     self.history().run(cmd)
Example #3
0
 def do(self):
     cmd = commands.AddActionCommand(configuration=self.configuration(), action=GyroAction())
     self.history().run(cmd)
Example #4
0
 def do(self):
     cmd = commands.AddActionCommand(configuration=self.configuration(), action=DisableButtonAction())
     self.history().run(cmd)