enable.drawing.drag_line module

A drag drawn line.

class enable.drawing.drag_line.DragLine(**traits)[source]

Bases: enable.drawing.drawing_tool.DrawingTool

A drag drawn line. This is not a straight line, but can be a free-form, curved path.

complete_draw(gc)[source]

Draw the completed line.

drawing_draw(gc)[source]
drawing_left_up(event)[source]

Handle the left mouse button coming up in the ‘drawing’ state.

drawing_mouse_move(event)[source]

Handle the mouse moving in ‘drawing’ state.

normal_left_down(event)[source]

Handle the left button down in the ‘normal’ state.

reset()[source]

Causes the tool to reset any saved state and revert its event_state back to the initial value (usually “normal”).

vertex_color = (0.0, 0.0, 0.0, 0.0)