Evaluates the content of element e with the all the conditions. The view is passed as an argument because it (or its builder) may be needed to solve specific text conditions, such as the run length of text and overflow of text boxes.
(self, score=None)
| 4802 | return score |
| 4803 | |
| 4804 | def solve(self, score=None): |
| 4805 | """Evaluates the content of element e with the all the conditions. The |
| 4806 | view is passed as an argument because it (or its builder) may be needed |
| 4807 | to solve specific text conditions, such as the run length of text and |
| 4808 | overflow of text boxes.""" |
| 4809 | if score is None: |
| 4810 | score = Score() |
| 4811 | |
| 4812 | # Can be None or empty list. Skip in case there are no conditions in |
| 4813 | # the style. |
| 4814 | if self.conditions: |
| 4815 | for condition in self.conditions: |
| 4816 | condition.solve(self, score) |
| 4817 | |
| 4818 | else: |
| 4819 | # Also works if showing element is not a container. |
| 4820 | for e in self.elements: |
| 4821 | if e.show: |
| 4822 | e.solve(score) |
| 4823 | |
| 4824 | return score |
| 4825 | |
| 4826 | def _get_viewFrameStrokeWidth(self): |
| 4827 | """Answers local setting of frame stroke width, used if self.showFrame |
no test coverage detected