.. wxPython Phoenix documentation

   This file was generated by Phoenix's sphinx generator and associated
   tools, do not edit by hand.

   Copyright: (c) 2011-2017 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 <richtextctrl overview>`    







|

|class_hierarchy| Class Hierarchy
=================================

.. raw:: html

   <div id="toggleBlock" onclick="return toggleVisibility(this)" class="closed" style="cursor:pointer;">
   <img id="toggleBlock-trigger" src="_static/images/closed.png"/>
   Inheritance diagram for class <strong>RichTextStyleComboCtrl</strong>:
   </div>
   <div id="toggleBlock-summary" style="display:block;"></div>
   <div id="toggleBlock-content" style="display:none;">
   <p class="graphviz">
   <center><img src="_static/images/inheritance/wx.richtext.RichTextStyleComboCtrl_inheritance.png" alt="Inheritance diagram of RichTextStyleComboCtrl" usemap="#dummy" class="inheritance"/></center>
   </div>
   <script type="text/javascript">toggleVisibilityOnLoad(document.getElementById('toggleBlock'))</script>
   <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.Control.html" title="wx.Control" alt="" coords="144,237,232,267"/> <area shape="rect" id="node6" href="wx.ComboCtrl.html" title="wx.ComboCtrl" alt="" coords="73,315,183,344"/> <area shape="rect" id="node2" href="wx.Window.html" title="wx.Window" alt="" coords="143,160,232,189"/> <area shape="rect" id="node3" href="wx.Object.html" title="wx.Object" alt="" coords="89,5,171,35"/> <area shape="rect" id="node4" href="wx.EvtHandler.html" title="wx.EvtHandler" alt="" coords="132,83,243,112"/> <area shape="rect" id="node5" href="wx.Trackable.html" title="wx.Trackable" alt="" coords="196,5,297,35"/> <area shape="rect" id="node8" href="wx.richtext.RichTextStyleComboCtrl.html" title="wx.richtext.RichTextStyleComboCtrl" alt="" coords="5,392,251,421"/> <area shape="rect" id="node7" href="wx.TextEntry.html" title="wx.TextEntry" alt="" coords="19,237,119,267"/> </map> 
   </p>

|


|method_summary| Methods Summary
================================

================================================================================ ================================================================================
:meth:`~wx.richtext.RichTextStyleComboCtrl.__init__`                             Constructor.
:meth:`~wx.richtext.RichTextStyleComboCtrl.Create`                               Creates the windows.
: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:

      **~~~**

      
      **__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
      
      
      
      
      
      
      **~~~**

      
      **__init__** `(self)`
      
      
      
      
      
      **~~~**






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








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

