A class representing a rich text object’s borders.
See also
wx.richtext.RichTextAttr, wx.richtext.RichTextCtrl, RichTextAttrBorder
__init__ |
Default constructor. |
Apply |
Applies border to this object, but not if the same as compareWith. |
CollectCommonAttributes |
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. |
EqPartial |
Partial equality test. |
GetBottom |
|
GetLeft |
|
GetRight |
|
GetTop |
|
IsValid |
Returns True if at least one border is valid. |
RemoveStyle |
Removes the specified attributes from this object. |
Reset |
Resets all borders. |
SetColour |
Sets colour of all borders. |
SetStyle |
Sets the style of all borders. |
SetWidth |
Sets the width of all borders. |
__nonzero__ |
|
__eq__ |
Equality operator. |
Bottom |
See GetBottom |
Left |
See GetLeft |
Right |
See GetRight |
Top |
See GetTop |
m_bottom |
A public C++ attribute of type TextAttrBorder . |
m_left |
A public C++ attribute of type TextAttrBorder . |
m_right |
A public C++ attribute of type TextAttrBorder . |
m_top |
A public C++ attribute of type TextAttrBorder . |
wx.richtext.
TextAttrBorders
(object)¶Possible constructors:
TextAttrBorders()
A class representing a rich text object’s borders.
__init__
(self)¶Default constructor.
Apply
(self, borders, compareWith=None)¶Applies border to this object, but not if the same as compareWith.
Parameters: |
|
---|---|
Return type: | 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.
Parameters: |
|
---|
EqPartial
(self, borders, weakTest=True)¶Partial equality test.
If weakTest is True
, attributes of this object do not have to be present if those attributes of borders are present. If weakTest is False
, the function will fail if an attribute is present in borders but not in this object.
Parameters: |
|
---|---|
Return type: | bool |
GetBottom
(self)¶Return type: | wx.richtext.TextAttrBorder |
---|
GetLeft
(self)¶Return type: | wx.richtext.TextAttrBorder |
---|
GetRight
(self)¶Return type: | wx.richtext.TextAttrBorder |
---|
GetTop
(self)¶Return type: | wx.richtext.TextAttrBorder |
---|
IsValid
(self)¶Returns True
if at least one border is valid.
Return type: | bool |
---|
RemoveStyle
(self, attr)¶Removes the specified attributes from this object.
Parameters: | attr (wx.richtext.TextAttrBorders) – |
---|---|
Return type: | bool |
Reset
(self)¶Resets all borders.
SetColour
(self, *args, **kw)¶SetColour (self, colour)
Sets colour of all borders.
Parameters: | colour (long) – |
---|
SetColour (self, colour)
Sets the colour for all borders.
Parameters: | colour (wx.Colour) – |
---|
SetStyle
(self, style)¶Sets the style of all borders.
Parameters: | style (int) – |
---|
SetWidth
(self, *args, **kw)¶Sets the width of all borders.
SetWidth (self, width)
Parameters: | width (wx.richtext.TextAttrDimension) – |
---|
SetWidth (self, value, units=TEXT_ATTR_UNITS_TENTHS_MM)
Parameters: |
|
---|
__nonzero__
(self)¶Return type: | int |
---|
__eq__
(self)¶Equality operator.
Parameters: | borders (wx.richtext.TextAttrBorders) – |
---|
m_bottom
¶A public C++ attribute of type TextAttrBorder
.
m_left
¶A public C++ attribute of type TextAttrBorder
.
m_right
¶A public C++ attribute of type TextAttrBorder
.
m_top
¶A public C++ attribute of type TextAttrBorder
.