Set bold on / off via CSS style
(self, val=True)
| 2498 | return self |
| 2499 | |
| 2500 | def set_bold(self, val=True): |
| 2501 | """Set bold on / off via CSS style""" |
| 2502 | if val: |
| 2503 | val="bold" |
| 2504 | else: |
| 2505 | val="normal" |
| 2506 | self.append_styled_span(f"font-weight: {val}") |
| 2507 | return self |
| 2508 | |
| 2509 | def set_color(self, color): |
| 2510 | """Set text color via CSS style""" |
no test coverage detected