[Python] Genereate text rectangle with custom border

Discussão em 'Python' iniciado por Stack, Julho 2, 2025.

  1. Stack

    Stack Membro Participativo

    I'd like to generate some rectangles with text on it with a very specific border: Shape example

    The border is:

    • a normal line with "x" on it:
    • matching with the content size
    • "x" with a mostly regular space between them

    My final goal is just to have an image of it that will be inserted in other documents.

    Have you any idea how could I generate such shapes?

    Tell me if you need more information. Thank you for your help! (any language, software idea is ok for me ;)

    Regards

    • Excel shapes should be enough but I miss the "x"
    • matplotlib.pyplot got a nice option but it is dedicated to draw curves

    Continue reading...

Compartilhe esta Página