phoenix_title wx.richtext.TextAttrBorders

A class representing a rich text object’s borders.

See also

wx.richtext.RichTextAttr, wx.richtext.RichTextCtrl, RichTextAttrBorder


class_hierarchy Class Hierarchy

Inheritance diagram for class TextAttrBorders:

method_summary Methods Summary

__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.

__bool__

__nonzero__

__eq__

Equality operator.


property_summary Properties Summary

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 .


api Class API

class wx.richtext.TextAttrBorders(object)

Possible constructors:

TextAttrBorders()

A class representing a rich text object’s borders.


Methods

__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)

overload Overloaded Implementations:



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.

overload Overloaded Implementations:



SetWidth (self, width)

Parameters:

width (wx.richtext.TextAttrDimension) –



SetWidth (self, value, units=TEXT_ATTR_UNITS_TENTHS_MM)

Parameters:





__bool__(self)
Return type:

int



__nonzero__(self)
Return type:

int



__eq__(self)

Equality operator.

Parameters:

borders (wx.richtext.TextAttrBorders) –


Properties

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 .