A class representing enhanced attributes for rich text objects.
This adds a wx.richtext.TextBoxAttr member to the basic wx.TextAttr class.
See also
wx.TextAttr, wx.richtext.TextBoxAttr, wx.richtext.RichTextCtrl
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 |
wx.richtext.
RichTextAttr
(TextAttr)¶Possible constructors:
RichTextAttr(attr)
RichTextAttr(attr)
RichTextAttr()
A class representing enhanced attributes for rich text objects.
__init__
(self, *args, **kw)¶__init__ (self, attr)
Constructor taking a wx.TextAttr.
attr (wx.TextAttr) –
__init__ (self, attr)
Copy constructor.
attr (wx.richtext.RichTextAttr) –
__init__ (self)
Default constructor.
Apply
(self, style, compareWith=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
CollectCommonAttributes
(self, attr, clashingAttr, absentAttr)¶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) –
Copy
(self, attr)¶Copy function.
attr (wx.richtext.RichTextAttr) –
EqPartial
(self, attr, weakTest=True)¶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
GetTextBoxAttr
(self)¶Returns the text box attributes.
IsDefault
(self)¶Returns True
if no attributes are set.
bool
RemoveStyle
(self, attr)¶Removes the specified attributes from this object.
attr (wx.richtext.RichTextAttr) –
bool
SetTextBoxAttr
(self, attr)¶Set the text box attributes.
attr (wx.richtext.TextBoxAttr) –
__eq__
(self)¶Equality test.
attr (wx.richtext.RichTextAttr) –
TextBoxAttr
¶See GetTextBoxAttr
and SetTextBoxAttr
m_textBoxAttr
¶A public C++ attribute of type TextBoxAttr
.