.. _textual-devel: Notes about using the ``textual`` framework =========================================== How to render text with specific styles in custom widgets --------------------------------------------------------- One can use `Markup in textual`_ to render text with styles in custom widgets. Another way: .. code-block:: python from rich.text import Text texto = Text("Enter the job name") texto.stylize("dark_orange", 0, 6) Label(texto) that should produce a text with normal foreground color everywhere but from index 0 to 6, where it is ``dark_orange``. .. _`Markup in textual`: https://textual.textualize.io/guide/content/#markup