# - - - P a r t y H o u r s R o w . _ _ i n i t _ _
def __init__(self, cbcHist):
'''Constructor.
'''
#-- 1
# [ self := a new Row instance with cbcHist=(cbcHist) ]
Row.__init__(self, cbcHist)
The row label is an instance of Section 35, “class HeadRowLabel: Row label for a
heading”.
#-- 2
# [ self._rowLabel := a new HeadRowLabel with text
# "Party-hours" ]
self._rowLabel = HeadRowLabel("Party-hours")
The remaining cells are instances of Section 38, “class LabelCell: Column label cell”. The value contained in these
cells is the total of all the effort records from the database
that pertain to that column. See Section 32.2, “PartyHoursRow._sumEfforts(): Find all the
party-hours for a logical column”.
#-- 3
# [ self._cellList := a list of PartyHoursCell instances
# containing the party-hours totals from cbcHist ]
self._cellList = self._sumEfforts()