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

        dialog = FileDialog(
            parent   = self.window.control,
            title    = self.name % 'Save scene to %s',
            action   = 'save as',
            wildcard = self.wildcard
        )
        if dialog.open() == OK:
            scene = self.scene_manager.current_scene
            if scene is not None:
                method = getattr(scene, self.save_method)
                method(dialog.path)

        return


# These are all specific subclasses that save particular images.
dataset/ETHPy150Open enthought/mayavi/tvtk/plugins/scene/ui/actions.py/SaveSceneToImage.perform/swapped operands of `%`