def _key_adv_frame(self, event=None):
    'Go forwards in key-frame list'
    new_frame = ((self.animation.frame + 1) % len(self.animation.key_frames))
    self.animation.set_to_keyframe(new_frame)
    self.keyframesListWidget.setCurrentRow(new_frame)
Go forwards in key-frame list
def _key_adv_frame(self, event=None):
    
    new_frame = ((self.animation.frame + 1) % len(self.animation.key_frames))
    self.animation.set_to_keyframe(new_frame)
    self.keyframesListWidget.setCurrentRow(new_frame)