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.


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, 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)

overload Overloaded Implementations:



__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

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

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