.. wxPython Phoenix documentation

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

   Copyright: (c) 2011-2025 by Total Control Software
   License:   wxWindows License

.. include:: headings.inc



.. _wx.html.HtmlColourCell:

==========================================================================================================================================
|phoenix_title|  **wx.html.HtmlColourCell**
==========================================================================================================================================

This cell changes the colour of either the background or the foreground. 
         









|

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

.. raw:: html

   <div class="collabsible-wrapper">
      <input id="collapsible-inheritance" class="collapsible-checkbox" type="checkbox">
      <label for="collapsible-inheritance" tabindex="0" title="Show inheritance diagram" class="collapsible-label">Inheritance diagram for class <strong>HtmlColourCell</strong>:</label>
      <div class="collapsible-content">
         <p class="graphviz">
            <center><img src="_static/images/inheritance/wx.html.HtmlColourCell_inheritance.svg" alt="Inheritance diagram of HtmlColourCell" usemap="#dummy" class="inheritance invert-in-dark-mode"/></center>
            <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.html.HtmlColourCell.html" title="This cell changes the colour of either the background or the foreground." alt="" coords="5,159,202,188"/> <area shape="rect" id="node2" href="wx.html.HtmlCell.html" title="Internal data structure." alt="" coords="29,82,178,111"/> <area shape="rect" id="node3" href="wx.Object.html" title="This is the root class of many of the wxWidgets classes." alt="" coords="54,5,153,34"/> </map> 
         </p>
      </div>
   </div>
   <script type="text/javascript" src="_static/inheritancetoggle.js"></script>



|


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

================================================================================ ================================================================================
:meth:`~wx.html.HtmlColourCell.__init__`                                         Constructor.
================================================================================ ================================================================================


|


|api| Class API
===============


.. class:: wx.html.HtmlColourCell(HtmlCell)

   **Possible constructors**::

       HtmlColourCell(clr, flags=HTML_CLR_FOREGROUND) -> None
       
   
   This cell changes the colour of either the background or the
   foreground.



   .. method:: __init__(self, clr, flags=HTML_CLR_FOREGROUND)

      Constructor. 
                 




      :param `clr`: The color   
      :type `clr`: wx.Colour
      :param `flags`: Can be one of following:

       - ``wx.html.HTML_CLR_FOREGROUND``: change color of text 
       - ``wx.html.HTML_CLR_BACKGROUND``: change background color  

 

      :type `flags`: int








      :rtype: `None`     




                  




