MarkupLabel: Handle drawing of text with markup
MarkupLabel: Handle drawing of text with markup
-
class pymt.core.text.markup.MarkupLabel(*largs, **kwargs)
Bases: pymt.core.text.LabelBase
Markup text label.
Markup is defined as tag with []. Example of markup text :
[b]Hello [color=ff0000]world[/b][/color]
- Available markups tags :
- [b][/b] : bold
- [i][/i] : italic
- [font=<str>][/font] : font name
- [size=<integer>][/size] : size
- [color=#<color>][/color] : text color