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.
See also
wx.richtext.RichTextStyleListBox, RichTextCtrl Overview
Class Hierarchy¶
Inheritance diagram for class RichTextStyleComboCtrl:
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¶wx.richtext.RichTextStyleComboCtrl(ComboCtrl)¶Possible constructors:
RichTextStyleComboCtrl(parent : Window, id: int=ID_ANY, pos:
Point=DefaultPosition, size: Size=DefaultSize, style: int=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.
__init__(self, *args, **kw)¶__init__ (self, parent : Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0)
Constructor.
None
__init__ (self)
None
Create(self, parent : Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0)¶Creates the windows.
GetClassDefaultAttributes(variant: WindowVariant=WINDOW_VARIANT_NORMAL)¶variant (WindowVariant) –
VisualAttributes
GetRichTextCtrl(self)¶Returns the wx.richtext.RichTextCtrl associated with this control.
GetStyleSheet(self)¶Returns the style sheet associated with this control.
SetRichTextCtrl(self, ctrl : RichTextCtrl)¶Associates the control with a wx.richtext.RichTextCtrl.
ctrl (wx.richtext.RichTextCtrl) –
None
SetStyleSheet(self, styleSheet : RichTextStyleSheet)¶Associates the control with a style sheet.
styleSheet (wx.richtext.RichTextStyleSheet) –
None
UpdateStyles(self)¶Updates the combo control from the associated style sheet.
None
RichTextCtrl¶See GetRichTextCtrl and SetRichTextCtrl
StyleSheet¶See GetStyleSheet and SetStyleSheet