Defines the DataPrinter tool class.

class, **traits)

Bases: enable.base_tool.BaseTool

Simple listener tool that prints the (x,y) data space position of the point under the cursor.

draw_mode = "none"

Turn off drawing, because the tool prints to stdout.

format = Str("(%.3f, %.3f)")

The string to format the (x,y) value in data space.


Handles the mouse being moved in the ‘normal’ state.

Prints the data space position of the current mouse position.

visible = False

This tool is a listener and does not display anything