1.5. pymilestone.milestone.py¶
Module containing the class for the milestone.
-
class
pymilestone.milestone.Milestone(text, lines=2)¶ Class for the milestone.
- Parameters
text (str) – Text of the milestone. Linebreaks must be added manually by inserting
\ninto the string.lines (int) – Number of lines. Defines the height of the milestone. Must be adjusted, if line breaks are added. Default is 2.
-
add_date(key, date)¶ Adds a date for a given category.
- Parameters
key (str) – Key of the respective category.
date (datetime) – Date of the milestone.
-
key_date_list¶ List containing the dates for the respective keys.
-
lines¶ Number of lines.
-
text¶ Text of the milestone.
-
type¶ The element type.