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
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. |
See |
|
See |
wx.richtext.
RichTextStyleComboCtrl
(ComboCtrl)¶Possible constructors:
RichTextStyleComboCtrl(parent, id=ID_ANY, pos=DefaultPosition,
size=DefaultSize, style=0)
RichTextStyleComboCtrl()
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, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0)
Constructor.
__init__ (self)
Create
(self, parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0)¶Creates the windows.
GetClassDefaultAttributes
(variant=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)¶Associates the control with a wx.richtext.RichTextCtrl.
ctrl (wx.richtext.RichTextCtrl) –
SetStyleSheet
(self, styleSheet)¶Associates the control with a style sheet.
styleSheet (wx.richtext.RichTextStyleSheet) –
UpdateStyles
(self)¶Updates the combo control from the associated style sheet.
RichTextCtrl
¶See GetRichTextCtrl
and SetRichTextCtrl
StyleSheet
¶See GetStyleSheet
and SetStyleSheet