spinetoolbox.project_items.shared.animations

Animation class for the Exporter and Importer items.

authors:
  1. Marin (KTH)
date:

12.11.2019

Module Contents

Classes

ImporterExporterAnimation Initializes animation stuff.
ImporterAnimation Initializes animation stuff.
ExporterAnimation Initializes animation stuff.
class spinetoolbox.project_items.shared.animations.ImporterExporterAnimation(item, duration=2000, count=5, percentage_size=0.24, x_shift=0)[source]

Initializes animation stuff.

Parameters:item (QGraphicsItem) – The item on top of which the animation should play.
_handle_time_line_value_changed(self, value)[source]
_handle_time_line_state_changed(self, new_state)[source]
start(self)[source]

Starts the animation.

static percent(value)[source]
stop(self)[source]

Stops the animation

class spinetoolbox.project_items.shared.animations.ImporterAnimation(item, duration=2000, count=5, percentage_size=0.24, x_shift=0)[source]

Bases: spinetoolbox.project_items.shared.animations.ImporterExporterAnimation

Initializes animation stuff.

Parameters:item (QGraphicsItem) – The item on top of which the animation should play.
static percent(value)[source]
class spinetoolbox.project_items.shared.animations.ExporterAnimation(item, duration=2000, count=5, percentage_size=0.24, x_shift=0)[source]

Bases: spinetoolbox.project_items.shared.animations.ImporterExporterAnimation

Initializes animation stuff.

Parameters:item (QGraphicsItem) – The item on top of which the animation should play.
static percent(value)[source]