spinetoolbox.project_items.shared.import_export_animation

Animation class for the Exporter and Importer items.

authors:
  1. Marin (KTH)
date:

12.11.2019

Module Contents

class spinetoolbox.project_items.shared.import_export_animation.ImportExportAnimation(parent_item, src_item, dst_item, duration=2000)[source]

Initializes animation stuff.

Parameters:
  • parent_item (QGraphicsItem) – The item on top of which the animation should play.
  • src_item (QGraphicsItem) – The source item.
  • dst_item (QGraphicsItem) – The destination item.
  • duration (int. optional) – The desired duration of each loop in milliseconds, defaults to 1000.
_handle_timer_value_changed(self, value)[source]
start(self)[source]

Starts the animation.

stop(self)[source]

Stops the animation