This module defines a widget to animate a sequence of images

class image.gui.animator.FrameAnimator(parent=None)[source]

Bases: PySide.QtGui.QMainWindow

Animate a list of frames

append_frame(frame)[source]

Append a new frame at the end of current list

Parameters:
  • frame (str or QPixmap) - filename or pixmap
clear_frames()[source]

Clear the list of frames

close_window()[source]
nb_frame_changed()[source]

Function to call when the number of frame has changed

pause()[source]
play()[source]
set_current_frame(ind)[source]

Set the index of the frame to be displayed

Parameters:
  • ind (int) - index of the frame to display
set_fps(fps)[source]

Set number of frame per second

Parameters:
  • fps (int)
set_frames(frames)[source]

Set frame names

Parameters:
  • frames (list of str or QPixmap) - list of pixmap or frame path
set_loop(loop)[source]

Set animation to loop

Parameters:
  • loop (bool) - if True animation will restart from start each time

    the end is reached

step()[source]
stop()[source]
toggle_running()[source]
update_pix()[source]

Change currently displayed frame

staticMetaObject = <PySide.QtCore.QMetaObject object at 0x2adee85ebe60>
image.gui.animator.clone_action(ref_action, clone)[source]
image.gui.animator.load_local(mod, modules)[source]

This Page