A class representing enhanced attributes for rich text objects.
This adds a wx.richtext.TextBoxAttr member to the basic wx.TextAttr class.
Constructor taking a wx.TextAttr. |
|
Merges the given attributes. |
|
Collects the attributes that are common to a range of content, building up a note of which attributes are absent in some objects and which clash in some objects. |
|
Copy function. |
|
Partial equality test. |
|
Returns the text box attributes. |
|
Returns |
|
Removes the specified attributes from this object. |
|
Set the text box attributes. |
|
Equality test. |
See |
|
A public C++ attribute of type |
Possible constructors:
RichTextAttr(attr : TextAttr) -> None
RichTextAttr(attr : RichTextAttr) -> None
RichTextAttr() -> None
A class representing enhanced attributes for rich text objects.
__init__ (self, attr : TextAttr)
Constructor taking a wx.TextAttr.
attr (wx.TextAttr)
None
__init__ (self, attr : RichTextAttr)
Copy constructor.
attr (wx.richtext.RichTextAttr)
None
__init__ (self)
Default constructor.
None
Merges the given attributes.
If compareWith is not None
, then it will be used to mask out those attributes that are the same in style and compareWith, for situations where we don’t want to explicitly set inherited attributes.
style (wx.richtext.RichTextAttr)
compareWith (wx.richtext.RichTextAttr)
bool
Collects the attributes that are common to a range of content, building up a note of which attributes are absent in some objects and which clash in some objects.
attr (wx.richtext.RichTextAttr)
clashingAttr (wx.richtext.RichTextAttr)
absentAttr (wx.richtext.RichTextAttr)
None
Copy function.
attr (wx.richtext.RichTextAttr)
None
Partial equality test.
If weakTest is True
, attributes of this object do not have to be present if those attributes of attr
are present. If weakTest is False
, the function will fail if an attribute is present in attr
but not in this object.
attr (wx.richtext.RichTextAttr)
weakTest (bool)
bool
Returns the text box attributes.
Returns True
if no attributes are set.
bool
Removes the specified attributes from this object.
attr (wx.richtext.RichTextAttr)
bool
Set the text box attributes.
attr (wx.richtext.TextBoxAttr)
None
Equality test.
attr (wx.richtext.RichTextAttr)
See GetTextBoxAttr
and SetTextBoxAttr
A public C++ attribute of type TextBoxAttr
.