module timelinelib.canvas.data.era

timelinelib.canvas.data.era.DEFAULT_ERA_COLOR = (200, 200, 200)
class timelinelib.canvas.data.era.Era[source]

Bases: timelinelib.canvas.data.base.ItemBase, timelinelib.canvas.data.item.TimelineItem

A clearly defined period of time of arbitrary but well-defined length. An Era is indicated in a timeline, by setting the background color to the Era color for the Era time period. The Era name is also drawn on the timeline within the Era time period.

__init__(db=None, id_=None, immutable_value=ImmutableEra({ 'name': None, 'time_period': None, 'color': (200, 200, 200), 'ends_today': False, }))[source]

Initialize self. See help(type(self)) for accurate signature.

save()[source]
delete()[source]
__eq__(other)[source]

Return self==value.

__ne__(other)[source]

Return self!=value.

__gt__(other)[source]

Return self>value.

__lt__(other)[source]

Return self<value.

ends_today()[source]
set_ends_today(value)[source]
update(start_time, end_time, name, color=(200, 200, 200))[source]
set_name(name)[source]
get_name()[source]
property name
set_color(color)[source]
get_color()[source]
property color
overlapping(era)[source]