enable.drawing.drag_segment module

class enable.drawing.drag_segment.DragSegment(**traits)[source]

Bases: enable.drawing.drawing_tool.DrawingTool

A dragged line segment

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.

normal_mouse_move(event)[source]
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)