chaco.chaco_traits module

Defines various traits that are used in many places in Chaco.

class chaco.chaco_traits.MappedUnion(*traits, **metadata)

Bases: traits.trait_types.Union

Version of the Union trait that handles mapped traits correctly.

is_mapped = False

This is not mapped by default.

class chaco.chaco_traits.Optional(trait, **metadata)

Bases: chaco.chaco_traits.MappedUnion

Convenience class

chaco.chaco_traits.box_position_enum = Enum("T", "B", "L", "R", "TL", "TR", "BL", "BR")

Values correspond to: top, bottom, left, right, top left, top right, bottom left, bottom right