GLXCurses.libs.TextAttributes module¶
-
class
GLXCurses.libs.TextAttributes.
TextAttributes
[source]¶ Bases:
object
-
attributes
¶ A list of style attributes to apply to the text of the label.
Returns: A list of style attributes Return type: list
-
label
¶ 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
-
markdown_is_used
¶ Get the
markdown_is_used
property valueDefault value: False
Returns: if True the contain of label
property is consider as MarkDownReturn type: bool
-
mnemonic_char
¶ A string with _ characters in positions correspond to characters in the text to underline.
Returns: characters in the text use for underline Return type: str
-
mnemonic_is_used
¶ Get the
mnemonic_is_used
property valueDefault value: False
Returns: if True the contain of label
property is consider as MarkDownReturn type: bool
-
mnemonic_use_underline
¶ If set, an underline in the text indicates the next character should be used for the mnemonic accelerator key.
Default value: False
Returns: True if underline is display on text when use a mnemonic accelerator key Return type: bool
-