Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def get_animation_frames():
    pixmap = QtGui.QPixmap(get_pixmap('animation.svg'))
    
    frames = []
    for angle in xrange(40):
        rotated_pixmap = pixmap.transformed(
            QtGui.QMatrix().rotate(angle * 9),
            Qt.SmoothTransformation
        )
        rect = pixmap.rect()
        rect.moveCenter(rotated_pixmap.rect().center())
        clipped_pixmap = rotated_pixmap.copy(rect)
        frames.append(clipped_pixmap)

    return frames
        


src/n/w/nwqt4-0.2/nwqt4/widgets/result.py   nwqt4(Download)
 
        self.busy_timer = None
        self.frames = common.get_animation_frames()
 
        self.thumb = QtGui.QLabel(parent = self)