text
Text
¶
Display some static text.
Note
This widget totally ignores refresh_interval
: static text does not need to be updated.
PARAMETER | DESCRIPTION |
---|---|
text
|
String to be printed
TYPE:
|
mode
|
TYPE:
|
style
|
Base style for text
TYPE:
|
emoji
|
Allow rendering emoji codes
TYPE:
|
emoji_variant
|
Emoji variant, either "text" or "emoji"
TYPE:
|
justify
|
Justify method: "left", "center", "full", "right"
TYPE:
|
overflow
|
Overflow method: "crop", "fold", "ellipsis"
TYPE:
|
no_wrap
|
Disable text wrapping
TYPE:
|
end
|
Character to end text with
TYPE:
|
tab_size
|
Number of spaces per tab, or
TYPE:
|
**kwargs
|
See BaseModule
TYPE:
|
Available parameters for each mode:
Name | "plain" | "rich" | "ansi" |
---|---|---|---|
style |
✅ | ✅ | ✅ |
emoji |
❌ | ✅ | ❌ |
emoji_variant |
❌ | ✅ | ❌ |
justify |
✅ | ✅ | ✅ |
overflow |
✅ | ✅ | ✅ |
no_wrap |
✅ | ❌ | ✅ |
end |
✅ | ✅ | ✅ |
tab_size |
✅ | ❌ | ✅ |
Info
Parameters marked with ❌ will be ignored.