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:
QIcon
- hasRegistredObjects()#
Returns true if any object is registered.
- Return type:
bool
- iconChanged#
Signal sent with a QIcon every time the animation changed.
- isRegistered(obj)#
Returns true if the object is registered in the AnimatedIcon.
- Parameters:
obj (object) – An object
- Return type:
bool
- register(obj)#
Register an object to the AnimatedIcon. If no object are registered, the animation is paused. Object are stored in a weaked list.
- Parameters:
obj – An object
- unregister(obj)#
Remove the object from the registration. If no object are registered the animation is paused.
- Parameters:
obj (object) – A registered object