spinetoolbox.project_items.tool.commands

Undo/redo commands for the Tool project item.

authors:
  1. Marin (KTH)
date:

5.5.2020

Module Contents

Classes

UpdateToolExecuteInWorkCommand Command to update Tool execute_in_work setting.
UpdateToolCmdLineArgsCommand Command to update Tool command line args.
class spinetoolbox.project_items.tool.commands.UpdateToolExecuteInWorkCommand(tool, execute_in_work)[source]

Bases: spinetoolbox.project_commands.SpineToolboxCommand

Command to update Tool execute_in_work setting.

Parameters:
  • tool (Tool) – the Tool
  • execute_in_work (bool) – True or False
redo(self)[source]
undo(self)[source]
class spinetoolbox.project_items.tool.commands.UpdateToolCmdLineArgsCommand(tool, cmd_line_args)[source]

Bases: spinetoolbox.project_commands.SpineToolboxCommand

Command to update Tool command line args.

Parameters:
  • tool (Tool) – the Tool
  • cmd_line_args (list) – list of str args
redo(self)[source]
undo(self)[source]