tomwer.gui.icons.AbstractAnimatedIcon#

class tomwer.gui.icons.AbstractAnimatedIcon(parent=None)#

Store an animated icon.

It provides an event containing the new icon everytime it is updated.

currentIcon()#

Returns the icon of the current frame.

Return type:

qt.QIcon

hasRegistredObjects()#

Returns true if any object is registred.

Return type:

bool

iconChanged#

Signal sent with a QIcon everytime the animation changed.

isRegistered(obj)#

Returns true if the object is registred in the AnimatedIcon.

Parameters:

obj (object) – An object

Return type:

bool

register(obj)#

Register an object to the AnimatedIcon. If no object are registred, the animation is paused. Object are stored in a weaked list.

Parameters:

obj (object) – An object

unregister(obj)#

Remove the object from the registration. If no object are registred the animation is paused.

Parameters:

obj (object) – A registered object