def _delete_keyframe_callback(self, event=None):
    'Delete current key-frame'
    if (len(self.animation.key_frames) > 0):
        self.animation.key_frames.pop(self.animation.frame)
    if (len(self.animation.key_frames) == 0):
        self.keyframesListControlWidget.deleteButton.setEnabled(False)
        self.keyframesListWidget.setEnabled(False)
        self.frameWidget.setEnabled(False)
    self.animationsliderWidget.requires_update = True
Delete current key-frame
def _delete_keyframe_callback(self, event=None):
    
    if (len(self.animation.key_frames) > 0):
        self.animation.key_frames.pop(self.animation.frame)
    if (len(self.animation.key_frames) == 0):
        self.keyframesListControlWidget.deleteButton.setEnabled(False)
        self.keyframesListWidget.setEnabled(False)
        self.frameWidget.setEnabled(False)
    self.animationsliderWidget.requires_update = True