StyledText
Python wrapper for Slint’s styled-text type.
Methods
Section titled “Methods”from_plain_text
Section titled “from_plain_text”from_plain_text(text: str) -> StyledTextCreates styled text from plain text.
from_markdown
Section titled “from_markdown”from_markdown(markdown: str) -> StyledTextParses markdown and returns a StyledText object.
Raises: ValueError: If the markdown contains unsupported syntax.
© 2026 SixtyFPS GmbH