def perform(self, event):
        """ Perform the action. """

        get_script_manager().start_recording()
    def __init__(self, **traits):
        """ Initialise the instance. """

        super(StopRecordingAction, self).__init__(**traits)

        get_script_manager().on_trait_change(self._on_recording, "recording")