wx.richtext.RichTextStyleDefinition¶
This is a base class for paragraph and character styles.
Class Hierarchy¶
Known Subclasses¶
wx.richtext.RichTextCharacterStyleDefinition, wx.richtext.RichTextParagraphStyleDefinition
Methods Summary¶
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 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. |
Properties Summary¶
See |
|
See |
|
See |
|
Class API¶
- class wx.richtext.RichTextStyleDefinition(Object)¶
Possible constructors:
RichTextStyleDefinition(name='') -> None
This is a base class for paragraph and character styles.
Methods¶
- __init__(self, name='')¶
Constructor.
- Parameters:
name (string)
- Return type:
None
- GetBaseStyle(self)¶
Returns the style on which this style is based.
- Return type:
str
- GetDescription(self)¶
Returns the style’s description.
- Return type:
str
- GetName(self)¶
Returns the style name.
- Return type:
str
- GetProperties(self)¶
Returns the definition’s properties.
- Return type:
- GetStyle(self)¶
- Return type:
- GetStyleMergedWithBase(self, sheet)¶
Returns the style attributes combined with the attributes of the specified base style, if any.
This function works recursively.
- Parameters:
sheet (wx.richtext.RichTextStyleSheet)
- Return type:
- SetBaseStyle(self, name)¶
Sets the name of the style that this style is based on.
- Parameters:
name (string)
- Return type:
None
- SetDescription(self, descr)¶
Sets the style description.
- Parameters:
descr (string)
- Return type:
None
- SetName(self, name)¶
Sets the name of the style.
- Parameters:
name (string)
- Return type:
None
- SetProperties(self, props)¶
Sets the definition’s properties.
- Parameters:
props (wx.richtext.RichTextProperties)
- Return type:
None
- SetStyle(self, style)¶
Sets the attributes for this style.
- Parameters:
style (wx.richtext.RichTextAttr)
- Return type:
None
Properties¶
- BaseStyle¶
See
GetBaseStyle
andSetBaseStyle
- Description¶
See
GetDescription
andSetDescription
- Properties¶
See
GetProperties
andSetProperties