chaco.tools.save_tool module¶
Defines the SaveTool class.
-
class
chaco.tools.save_tool.
SaveTool
(component=None, **traits)¶ Bases:
enable.base_tool.BaseTool
This tool allows the user to press Ctrl+S to save a snapshot image of the plot component.
-
draw_mode
= "none"¶ This tool does not have a visual representation (overrides BaseTool).
-
filename
= Str("saved_plot.png")¶ The file that the image is saved in. The format will be deduced from the extension.
-
normal_key_pressed
(event)¶ Handles a key-press when the tool is in the ‘normal’ state.
Saves an image of the plot if the keys pressed are Control and S.
-
visible
= False¶ This tool is not visible (overrides BaseTool).
-