GLXCurses.libs.TextUtils module¶
-
class
GLXCurses.libs.TextUtils.
TextUtils
[source]¶ Bases:
object
-
lines
¶ The lines This property has no effect if the text is not wrapping .
Returns: Lines dispatch on by list item Return type: list
-
text
¶ The contents of the label.
If the string contains TXT MarkDown, you will have to set the
use_markdown
property to True in order for the label to display the MarkDown attributes.See also set_markdown() for a convenience function that sets both this property and the
use_markdown
property at the same time.If the string contains underlines acting as mnemonics, you will have to set the
use_underline
property to True in order for the label to display them.Returns: The content of the label Return type: str
-
wrap
¶ If set, wrap lines if the text becomes too wide.
Returns: True if wrap is in use Return type: bool
-
wrap_mode
¶ If line wrapping is on (see the
wrap
property) this controls how the line wrapping is done.The default is GLXC.WRAP_WORD, which means wrap on word boundaries.
Returns: How the line wrapping is done Return type: GLXC.WrapMode
-