GLXCurses.TextTag module¶
-
class
GLXCurses.TextTag.TextTag[source]¶ Bases:
GLXCurses.Object.ObjectYou may wish to begin by reading the text widget conceptual overview which gives an overview of all the objects and data types related to the text widget and how they work together.
Tags should be in the TextTagTable for a given TextBuffer before using them with that buffer.
For each property of TextTag, there is a “set” property, e.g. “font-set” corresponds to “font”. These “set” properties reflect whether a property has been set or not.
They are maintained by GLXCurses and you should not set them independently.
-
accumulative_margin¶ Whether the margins accumulate or override each other.
When set to
Truethe margins of this tag are added to the margins of any other non-accumulative margins present.When set to
Falsethe margins override one another (the default).Default value is
Falseand be restore whenaccumulative_marginis set toNoneReturns: If Truethe margins of this tag are added to the margins of any other non-accumulativeReturn type: bool
-
background¶ Background color as a string.
Returns: color as a string Return type: str
-
background_full_height¶ Whether the background color fills the entire line height or only the height of the tagged characters.
When set to
Truethe background color fills the entire line heightDefault value is
Falseand be restore whenbackground_full_heightis set toNoneReturns: If Truethe background color fills the entire line heightReturn type: bool
-
background_full_height_set¶ Whether this tag affects background height.
When set to
Truethis tag affects background heightDefault value is
Falseand be restore whenbackground_full_height_setis set toNoneReturns: TrueIf this tag affects background heightReturn type: bool
-
background_rgb¶ Background color as a RGB.
Default value is
{'r': 0, 'g': 0, 'b': 255}and be restore whenbackground_rgbis set toNoneReturns: The RGB color as dict with r, g, b key_name Return type: dict
-
background_set¶ Whether this tag affects the background color.
Default value is
Falseand be restore whenbackground_setis set toNoneReturns: If True, this tag affects the background colorReturn type: bool
-
direction¶ Text direction, e.g. right-to-left -> ‘RTL’ or left-to-right -> ‘LTR’.
Returns: GLXC.TextDirection direction type Return type: str
-
editable¶ Whether the text can be modified by the user.
Default value is
Trueand be restore wheneditableis set toNoneReturns: If True, the text can be modified by the user.Return type: bool
-
editable_set¶ Whether this tag affects text editability.
Default value is
Falseand be restore wheneditable_setis set toNoneReturns: If False, text editability is disableReturn type: bool
-
family¶ Name of the font family, e.g. Sans, Helvetica, Times, Monospace.
Default value is
Noneand be restore whenfamilyis set toNoneReturns: The font family name Return type: str or None
-
family_set¶ Whether this tag affects the font family.
Default value is
Falseand be restore wheneditable_setis set toNoneReturns: If False, text editability is disableReturn type: bool
-