wx.richtext.RichTextStyleComboCtrl¶
This is a combo control that can display the styles in a wx.richtext.RichTextStyleSheet, and apply the selection to an associated wx.richtext.RichTextCtrl.
See samples/richtext
for an example of how to use it.
Class Hierarchy¶
Methods Summary¶
Constructor. |
|
Creates the windows. |
|
Returns the wx.richtext.RichTextCtrl associated with this control. |
|
Returns the style sheet associated with this control. |
|
Associates the control with a wx.richtext.RichTextCtrl. |
|
Associates the control with a style sheet. |
|
Updates the combo control from the associated style sheet. |
Properties Summary¶
See |
|
See |
Class API¶
- class wx.richtext.RichTextStyleComboCtrl(ComboCtrl)¶
Possible constructors:
RichTextStyleComboCtrl(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0) -> None RichTextStyleComboCtrl() -> None
This is a combo control that can display the styles in a RichTextStyleSheet, and apply the selection to an associated RichTextCtrl.
Methods¶
- __init__(self, *args, **kw)¶
-
__init__ (self, parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0)
Constructor.
- Parameters:
- Return type:
None
__init__ (self)
- Return type:
None
- Create(self, parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0)¶
Creates the windows.
- static GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL)¶
- Parameters:
variant (WindowVariant)
- Return type:
VisualAttributes
- GetRichTextCtrl(self)¶
Returns the wx.richtext.RichTextCtrl associated with this control.
- Return type:
- GetStyleSheet(self)¶
Returns the style sheet associated with this control.
- Return type:
- SetRichTextCtrl(self, ctrl)¶
Associates the control with a wx.richtext.RichTextCtrl.
- Parameters:
ctrl (wx.richtext.RichTextCtrl)
- Return type:
None
- SetStyleSheet(self, styleSheet)¶
Associates the control with a style sheet.
- Parameters:
styleSheet (wx.richtext.RichTextStyleSheet)
- Return type:
None
- UpdateStyles(self)¶
Updates the combo control from the associated style sheet.
- Return type:
None
Properties¶
- RichTextCtrl¶
See
GetRichTextCtrl
andSetRichTextCtrl
- StyleSheet¶
See
GetStyleSheet
andSetStyleSheet