enable.primitives.polygon module

A filled polygon component

class enable.primitives.polygon.Polygon(**traits)[source]

Bases: enable.component.Component

A filled polygon component.

colorchip_map = {'alt_color': 'border_color', 'color': 'color'}
reset()[source]

Reset the polygon to the initial state

class enable.primitives.polygon.PolygonModel[source]

Bases: traits.has_traits.HasTraits

The data model for a Polygon.

reset()[source]