def show_spirit_points(self, character):
        current_spirit = character.spirit
        max_spirit = character.max_spirit
        for count, label in enumerate(self.spirit):
            if count >= max_spirit // 4:
                label.setPixmap(self.surface_manager.get_icon('transparent'))
            elif count == current_spirit // 4:
                if current_spirit % 4 == 1:
                    label.setPixmap(self.surface_manager.get_icon('heart_blue_1'))
                elif current_spirit % 4 == 2:
                    label.setPixmap(self.surface_manager.get_icon('heart_blue_2'))
                elif current_spirit % 4 == 3:
                    label.setPixmap(self.surface_manager.get_icon('heart_blue_3'))
                elif current_spirit % 4 == 0:
                    label.setPixmap(self.surface_manager.get_icon('heart_blue_0'))
            elif count < current_spirit // 4:
                label.setPixmap(self.surface_manager.get_icon('heart_blue_4'))
            else:
                label.setPixmap(self.surface_manager.get_icon('heart_blue_0'))
Show spirit points of given character
dataset/ETHPy150Open tuturto/pyherc/src/herculeum/ui/gui/widgets.py/HitPointsWidget.show_spirit_points