def __init__( self, board ): FiguresTable.__init__( self ) report = board.getReport( SecurityReport ) self.y = 0 self.titleCell( "Security", x = 0 ) self.textCell( "Goal" ) self.y += 1 self.untranslatedBalanceCell( report.value, report.ok, x = 0 ) self.intSpinBoxCell( report.goal, 5, board.setSecurityGoal )
def __init__( self, board ): FiguresTable.__init__( self ) self.report = board.getReport( HousingReport ) self.board = board self.y = 0 self.__addHeader() self.__addCategories() height = self.y - 1 self.untranslatedBalanceCell( self.report.total, self.report.totalIsOk, x = 5, y = 1, height = height ) self.intSpinBoxCell( self.report.goal, 100, self.board.setPopulationGoal, height = height )