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.
Methods Summary¶__init__ |
Constructor. |
Create |
Creates the windows. |
GetRichTextCtrl |
Returns the wx.richtext.RichTextCtrl associated with this control. |
GetStyleSheet |
Returns the style sheet associated with this control. |
SetRichTextCtrl |
Associates the control with a wx.richtext.RichTextCtrl. |
SetStyleSheet |
Associates the control with a style sheet. |
UpdateStyles |
Updates the combo control from the associated style sheet. |
Properties Summary¶RichTextCtrl |
See GetRichTextCtrl and SetRichTextCtrl |
StyleSheet |
See GetStyleSheet and SetStyleSheet |
Class API¶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.
| Parameters: |
|---|
__init__ (self)
Create(self, parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0)¶Creates the windows.
| Parameters: | |
|---|---|
| Return type: | bool |
GetRichTextCtrl(self)¶Returns the wx.richtext.RichTextCtrl associated with this control.
| Return type: | wx.richtext.RichTextCtrl |
|---|
GetStyleSheet(self)¶Returns the style sheet associated with this control.
| Return type: | wx.richtext.RichTextStyleSheet |
|---|
SetRichTextCtrl(self, ctrl)¶Associates the control with a wx.richtext.RichTextCtrl.
| Parameters: | ctrl (wx.richtext.RichTextCtrl) – |
|---|
SetStyleSheet(self, styleSheet)¶Associates the control with a style sheet.
| Parameters: | 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