spinetoolbox.project_items.tool.tool_icon

Module for tool icon class.

authors:
  1. Marin (KTH), P. Savolainen (VTT)
date:

4.4.2018

Module Contents

class spinetoolbox.project_items.tool.tool_icon.ToolIcon(toolbox, x, y, w, h, name)[source]

Bases: spinetoolbox.graphics_items.ProjectItemIcon

Tool icon for the Design View.

Parameters:
  • toolbox (ToolBoxUI) – QMainWindow instance
  • x (float) – Icon x coordinate
  • y (float) – Icon y coordinate
  • w (float) – Width of master icon
  • h (float) – Height of master icon
  • name (str) – Item name
static _value_for_time(msecs)[source]
start_animation(self)[source]

Start the animation that plays when the Tool associated to this GraphicsItem is running.

stop_animation(self)[source]

Stop animation