phoenix_title 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 Class Hierarchy

Inheritance diagram for class RichTextStyleComboCtrl:

method_summary Methods Summary

__init__

Constructor.

Create

Creates the windows.

GetClassDefaultAttributes

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.


property_summary Properties Summary

RichTextCtrl

See GetRichTextCtrl and SetRichTextCtrl

StyleSheet

See GetStyleSheet and SetStyleSheet


api Class API

class 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.


Methods

__init__(self, *args, **kw)

overload Overloaded Implementations:



__init__ (self, parent : Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0)

Constructor.

Parameters:
Return type:

None



__init__ (self)

Return type:

None





Create(self, parent : Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0)

Creates the windows.

Parameters:
Return type:

bool



static GetClassDefaultAttributes(variant: WindowVariant=WINDOW_VARIANT_NORMAL)
Parameters:

variant (WindowVariant) –

Return type:

VisualAttributes



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 : RichTextCtrl)

Associates the control with a wx.richtext.RichTextCtrl.

Parameters:

ctrl (wx.richtext.RichTextCtrl) –

Return type:

None



SetStyleSheet(self, styleSheet : RichTextStyleSheet)

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 and SetRichTextCtrl



StyleSheet

See GetStyleSheet and SetStyleSheet