[Python] How to display math-text in Kivy Python?

Discussão em 'Python' iniciado por Stack, Setembro 7, 2025.

  1. Stack

    Stack Membro Participativo

    I would like to ask on how to display a math-text in a kivy app..? For example : How to do the same thing as $ \frac{1}{2} $ or $ 2^{3} $ does in LaTeX (omitting the font type, as long as it is math-readable).

    I know that in matplotlib.pyplot module, I can use string : r'$ \frac{1}{2} $' or r'$ 2^{3} $' to produce a math-text. But this does not produce the desired result in kivy :

    Label(text = r'$\frac{1}{2}$' ) will reproduce $\frac{1}{2}$.

    Thanks.

    Continue reading...

Compartilhe esta Página