This is a base class for paragraph and character styles.
wx.richtext.RichTextCharacterStyleDefinition, wx.richtext.RichTextParagraphStyleDefinition
Constructor. |
|
Returns the style on which this style is based. |
|
Returns the style’s description. |
|
Returns the style name. |
|
Returns the definition’s properties. |
|
Returns the attributes associated with this style. |
|
Returns the style attributes combined with the attributes of the specified base style, if any. |
|
Sets the name of the style that this style is based on. |
|
Sets the style description. |
|
Sets the name of the style. |
|
Sets the definition’s properties. |
|
Sets the attributes for this style. |
See |
|
See |
|
See |
|
wx.richtext.
RichTextStyleDefinition
(Object)¶Possible constructors:
RichTextStyleDefinition(name="")
This is a base class for paragraph and character styles.
__init__
(self, name="")¶Constructor.
name (string) –
GetBaseStyle
(self)¶Returns the style on which this style is based.
string
GetDescription
(self)¶Returns the style’s description.
string
GetName
(self)¶Returns the style name.
string
GetProperties
(self)¶Returns the definition’s properties.
GetStyle
(self)¶Returns the attributes associated with this style.
GetStyleMergedWithBase
(self, sheet)¶Returns the style attributes combined with the attributes of the specified base style, if any.
This function works recursively.
sheet (wx.richtext.RichTextStyleSheet) –
SetBaseStyle
(self, name)¶Sets the name of the style that this style is based on.
name (string) –
SetDescription
(self, descr)¶Sets the style description.
descr (string) –
SetName
(self, name)¶Sets the name of the style.
name (string) –
SetProperties
(self, props)¶Sets the definition’s properties.
props (wx.richtext.RichTextProperties) –
SetStyle
(self, style)¶Sets the attributes for this style.
style (wx.richtext.RichTextAttr) –
BaseStyle
¶See GetBaseStyle
and SetBaseStyle
Description
¶See GetDescription
and SetDescription
Properties
¶See GetProperties
and SetProperties