Widget to display text, with simple html-like markup.
The Label widget doesn’t allow text to overflow its boundaries, if the text doesn’t fit the geometry of the label it will be ellipsized or be cut.
The default style
Left aligned label (since 1.18)
Right aligned label (since 1.18)
Centers the text in the label and makes it bold by default
Like marker but left aligned (since 1.18)
Like marker but right aligned (since 1.18)
The entire text appears from the right of the screen and slides until it disappears in the left of the screen(reappearing on the right again).
The text appears in the left of the label and slides to the right to show the overflow. When all of the text has been shown the position is reset.
The text appears in the left of the label and slides to the right to show the overflow. When all of the text has been shown the animation reverses, moving the text to the left.
Custom themes can of course invent new markup tags and style them any way they like.
slide,end- The slide is end.
- class efl.elementary.Label(Object parent, *args, **kwargs)¶
This is the class that actually implements the widget.
efl.evas.Object) – The parent object
**kwargs – All the remaining keyword arguments are interpreted as properties of the instance
- callback_slide_end_add(func, *args, **kwargs)¶
A slide effect has ended.
The ellipsis behavior of the label
If set to True and the text doesn’t fit in the label an ellipsis(“…”) will be shown at the end of the widget.
This doesn’t work with slide(
slide) or if the chosen wrap method was ELM_WRAP_WORD.
The duration time in moving text from slide begin position to slide end position
If you set the speed of the slide using
slide_speedyou cannot get the correct duration using this function until the label is actually rendered and resized.
Start the slide effect.
New in version 1.8.
Change the slide mode of the label widget.
By default, slide mode is none.
New in version 1.8.
The speed of the slide animation in px per seconds
If you set the duration of the slide using
slide_durationyou cannot get the correct speed using this function until the label is actually rendered and resized.
New in version 1.9.
Wrap width of the label
This is the maximum width size hint of the label.
This is only relevant if the label is inside a container.