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: str='') -> None
This is a base class for paragraph and character styles.
__init__
(self, name: str='')¶Constructor.
name (string) –
None
GetBaseStyle
(self)¶Returns the style on which this style is based.
str
GetDescription
(self)¶Returns the style’s description.
str
GetName
(self)¶Returns the style name.
str
GetProperties
(self)¶Returns the definition’s properties.
GetStyle
(self)¶Returns the attributes associated with this style.
GetStyleMergedWithBase
(self, sheet : RichTextStyleSheet)¶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 : str)¶Sets the name of the style that this style is based on.
name (string) –
None
SetDescription
(self, descr : str)¶Sets the style description.
descr (string) –
None
SetName
(self, name : str)¶Sets the name of the style.
name (string) –
None
SetProperties
(self, props : RichTextProperties)¶Sets the definition’s properties.
props (wx.richtext.RichTextProperties) –
None
SetStyle
(self, style : RichTextAttr)¶Sets the attributes for this style.
style (wx.richtext.RichTextAttr) –
None
BaseStyle
¶See GetBaseStyle
and SetBaseStyle
Description
¶See GetDescription
and SetDescription
Properties
¶See GetProperties
and SetProperties