def _capture_keyframe_callback(self, event=None):
    'Record current key-frame'
    self.animation.capture_keyframe(steps=self._get_interpolation_steps(), ease=self._get_easing_function())
    if (len(self.animation.key_frames) == 1):
        self.keyframesListControlWidget.deleteButton.setEnabled(True)
        self.keyframesListWidget.setEnabled(True)
        self.frameWidget.setEnabled(True)
    self.animationsliderWidget.requires_update = True
Record current key-frame
def _capture_keyframe_callback(self, event=None):
    
    self.animation.capture_keyframe(steps=self._get_interpolation_steps(), ease=self._get_easing_function())
    if (len(self.animation.key_frames) == 1):
        self.keyframesListControlWidget.deleteButton.setEnabled(True)
        self.keyframesListWidget.setEnabled(True)
        self.frameWidget.setEnabled(True)
    self.animationsliderWidget.requires_update = True