.. wxPython Phoenix documentation This file was generated by Phoenix's sphinx generator and associated tools, do not edit by hand. Copyright: (c) 2011-2020 by Total Control Software License: wxWindows License .. include:: headings.inc .. _wx.richtext.RichTextStyleComboCtrl: ========================================================================================================================================== |phoenix_title| **wx.richtext.RichTextStyleComboCtrl** ========================================================================================================================================== This is a combo control that can display the styles in a :ref:`wx.richtext.RichTextStyleSheet`, and apply the selection to an associated :ref:`wx.richtext.RichTextCtrl`. See ``samples/richtext`` for an example of how to use it. .. seealso:: :ref:`wx.richtext.RichTextStyleListBox`, :ref:`RichTextCtrl Overview ` | |class_hierarchy| Class Hierarchy ================================= .. raw:: html
Inheritance diagram for class RichTextStyleComboCtrl:
| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~wx.richtext.RichTextStyleComboCtrl.__init__` Constructor. :meth:`~wx.richtext.RichTextStyleComboCtrl.Create` Creates the windows. :meth:`~wx.richtext.RichTextStyleComboCtrl.GetClassDefaultAttributes` :meth:`~wx.richtext.RichTextStyleComboCtrl.GetRichTextCtrl` Returns the :ref:`wx.richtext.RichTextCtrl` associated with this control. :meth:`~wx.richtext.RichTextStyleComboCtrl.GetStyleSheet` Returns the style sheet associated with this control. :meth:`~wx.richtext.RichTextStyleComboCtrl.SetRichTextCtrl` Associates the control with a :ref:`wx.richtext.RichTextCtrl`. :meth:`~wx.richtext.RichTextStyleComboCtrl.SetStyleSheet` Associates the control with a style sheet. :meth:`~wx.richtext.RichTextStyleComboCtrl.UpdateStyles` Updates the combo control from the associated style sheet. ================================================================================ ================================================================================ | |property_summary| Properties Summary ===================================== ================================================================================ ================================================================================ :attr:`~wx.richtext.RichTextStyleComboCtrl.RichTextCtrl` See :meth:`~wx.richtext.RichTextStyleComboCtrl.GetRichTextCtrl` and :meth:`~wx.richtext.RichTextStyleComboCtrl.SetRichTextCtrl` :attr:`~wx.richtext.RichTextStyleComboCtrl.StyleSheet` See :meth:`~wx.richtext.RichTextStyleComboCtrl.GetStyleSheet` and :meth:`~wx.richtext.RichTextStyleComboCtrl.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. .. method:: __init__(self, *args, **kw) |overload| Overloaded Implementations: :html:`

` **__init__** `(self, parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0)` Constructor. :param `parent`: :type `parent`: wx.Window :param `id`: :type `id`: wx.WindowID :param `pos`: :type `pos`: wx.Point :param `size`: :type `size`: wx.Size :param `style`: :type `style`: long :html:`

` **__init__** `(self)` :html:`

` .. method:: Create(self, parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0) Creates the windows. :param `parent`: :type `parent`: wx.Window :param `id`: :type `id`: wx.WindowID :param `pos`: :type `pos`: wx.Point :param `size`: :type `size`: wx.Size :param `style`: :type `style`: long :rtype: `bool` .. staticmethod:: GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL) :param `variant`: :type `variant`: wx.WindowVariant :rtype: `VisualAttributes` .. method:: GetRichTextCtrl(self) Returns the :ref:`wx.richtext.RichTextCtrl` associated with this control. :rtype: :ref:`wx.richtext.RichTextCtrl` .. method:: GetStyleSheet(self) Returns the style sheet associated with this control. :rtype: :ref:`wx.richtext.RichTextStyleSheet` .. method:: SetRichTextCtrl(self, ctrl) Associates the control with a :ref:`wx.richtext.RichTextCtrl`. :param `ctrl`: :type `ctrl`: wx.richtext.RichTextCtrl .. method:: SetStyleSheet(self, styleSheet) Associates the control with a style sheet. :param `styleSheet`: :type `styleSheet`: wx.richtext.RichTextStyleSheet .. method:: UpdateStyles(self) Updates the combo control from the associated style sheet. .. attribute:: RichTextCtrl See :meth:`~wx.richtext.RichTextStyleComboCtrl.GetRichTextCtrl` and :meth:`~wx.richtext.RichTextStyleComboCtrl.SetRichTextCtrl` .. attribute:: StyleSheet See :meth:`~wx.richtext.RichTextStyleComboCtrl.GetStyleSheet` and :meth:`~wx.richtext.RichTextStyleComboCtrl.SetStyleSheet`