[Python] How can I eliminate spaces around Panel titles in Rich?

Discussão em 'Python' iniciado por Stack, Novembro 29, 2024.

  1. Stack

    Stack Membro Participativo

    I'm using Rich's Panel feature. Is there a way to eliminate the extra spaces Panel puts around title text? Here's an example from a Wordle program, which shows a sequence of Guesses. (It is written in and runs in Colab, hence the use of Rich.)

    [​IMG]

    The spaces before and after the title text are intentional. (They are part of the title text.) It's the spaces between those spaces and the Panel outline that I'd like to eliminate.

    Thanks.

    Continue reading...

Compartilhe esta Página