r""" Set the text string *s*. It may contain newlines (``\n``) or math in LaTeX syntax. Parameters ---------- s : object Any object gets converted to its `str` representation, except for ``None`` which is converted to an empty string.
(self, s)
| 1435 | self.stale = True |
| 1436 | |
| 1437 | def set_text(self, s): |
| 1438 | r""" |
| 1439 | Set the text string *s*. |
| 1440 | |
| 1441 | It may contain newlines (``\n``) or math in LaTeX syntax. |
| 1442 | |
| 1443 | Parameters |
| 1444 | ---------- |
| 1445 | s : object |
| 1446 | Any object gets converted to its `str` representation, except for |
| 1447 | ``None`` which is converted to an empty string. |
| 1448 | """ |
| 1449 | s = '' if s is None else str(s) |
| 1450 | if s != self._text: |
| 1451 | self._text = s |
| 1452 | self.stale = True |
| 1453 | |
| 1454 | def _preprocess_math(self, s): |
| 1455 | """ |
no outgoing calls