.. 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.propgrid.PGCell:
==========================================================================================================================================
|phoenix_title| **wx.propgrid.PGCell**
==========================================================================================================================================
Base class for :ref:`wx.propgrid.PropertyGrid` cell information.
|
|class_hierarchy| Class Hierarchy
=================================
.. raw:: html

Inheritance diagram for class
PGCell:
|
|sub_classes| Known Subclasses
==============================
:ref:`wx.propgrid.PGChoiceEntry`
|
|method_summary| Methods Summary
================================
================================================================================ ================================================================================
:meth:`~wx.propgrid.PGCell.__init__`
:meth:`~wx.propgrid.PGCell.GetBgCol`
:meth:`~wx.propgrid.PGCell.GetBitmap`
:meth:`~wx.propgrid.PGCell.GetData`
:meth:`~wx.propgrid.PGCell.GetFgCol`
:meth:`~wx.propgrid.PGCell.GetFont` Returns font of the cell.
:meth:`~wx.propgrid.PGCell.GetText`
:meth:`~wx.propgrid.PGCell.HasText` Returns ``True`` if this cell has custom text stored within.
:meth:`~wx.propgrid.PGCell.MergeFrom` Merges valid data from srcCell into this.
:meth:`~wx.propgrid.PGCell.SetBgCol`
:meth:`~wx.propgrid.PGCell.SetBitmap`
:meth:`~wx.propgrid.PGCell.SetEmptyData` Sets empty but valid data to this cell object.
:meth:`~wx.propgrid.PGCell.SetFgCol`
:meth:`~wx.propgrid.PGCell.SetFont` Sets font of the cell.
:meth:`~wx.propgrid.PGCell.SetText`
================================================================================ ================================================================================
|
|property_summary| Properties Summary
=====================================
================================================================================ ================================================================================
:attr:`~wx.propgrid.PGCell.BgCol` See :meth:`~wx.propgrid.PGCell.GetBgCol` and :meth:`~wx.propgrid.PGCell.SetBgCol`
:attr:`~wx.propgrid.PGCell.Bitmap` See :meth:`~wx.propgrid.PGCell.GetBitmap` and :meth:`~wx.propgrid.PGCell.SetBitmap`
:attr:`~wx.propgrid.PGCell.Data` See :meth:`~wx.propgrid.PGCell.GetData`
:attr:`~wx.propgrid.PGCell.FgCol` See :meth:`~wx.propgrid.PGCell.GetFgCol` and :meth:`~wx.propgrid.PGCell.SetFgCol`
:attr:`~wx.propgrid.PGCell.Font` See :meth:`~wx.propgrid.PGCell.GetFont` and :meth:`~wx.propgrid.PGCell.SetFont`
:attr:`~wx.propgrid.PGCell.Text` See :meth:`~wx.propgrid.PGCell.GetText` and :meth:`~wx.propgrid.PGCell.SetText`
================================================================================ ================================================================================
|
|api| Class API
===============
.. class:: wx.propgrid.PGCell(Object)
**Possible constructors**::
PGCell() -> None
PGCell(other : PGCell) -> None
PGCell(text : str, bitmap: BitmapBundle=BitmapBundle(), fgCol:
Colour=NullColour, bgCol: Colour=NullColour) -> None
Base class for PropertyGrid cell information.
.. method:: __init__(self, *args, **kw)
|overload| **Overloaded Implementations:**
:html:`
`
**__init__** `(self)`
:rtype: `None`
:html:`
`
**__init__** `(self, other : PGCell)`
:param `other`:
:type `other`: wx.propgrid.PGCell
:rtype: `None`
:html:`
`
**__init__** `(self, text : str, bitmap: BitmapBundle=BitmapBundle(), fgCol: Colour=NullColour, bgCol: Colour=NullColour)`
:param `text`:
:type `text`: string
:param `bitmap`:
:type `bitmap`: wx.BitmapBundle
:param `fgCol`:
:type `fgCol`: wx.Colour
:param `bgCol`:
:type `bgCol`: wx.Colour
:rtype: `None`
:html:`
`
.. method:: GetBgCol(self)
:rtype: `Colour`
.. method:: GetBitmap(self)
:rtype: `BitmapBundle`
.. method:: GetData(self)
:rtype: :ref:`wx.propgrid.PGCellData`
.. method:: GetFgCol(self)
:rtype: `Colour`
.. method:: GetFont(self)
Returns font of the cell.
If no specific font is set for this cell, then the font will be invalid.
:rtype: `Font`
.. method:: GetText(self)
:rtype: `str`
.. method:: HasText(self)
Returns ``True`` if this cell has custom text stored within.
:rtype: `bool`
.. method:: MergeFrom(self, srcCell : PGCell)
Merges valid data from srcCell into this.
:param `srcCell`:
:type `srcCell`: wx.propgrid.PGCell
:rtype: `None`
.. method:: SetBgCol(self, col : Colour)
:param `col`:
:type `col`: wx.Colour
:rtype: `None`
.. method:: SetBitmap(self, bitmap : BitmapBundle)
:param `bitmap`:
:type `bitmap`: wx.BitmapBundle
:rtype: `None`
.. method:: SetEmptyData(self)
Sets empty but valid data to this cell object.
:rtype: `None`
.. method:: SetFgCol(self, col : Colour)
:param `col`:
:type `col`: wx.Colour
:rtype: `None`
.. method:: SetFont(self, font : Font)
Sets font of the cell.
:param `font`:
:type `font`: wx.Font
:rtype: `None`
.. note::
Because :ref:`wx.propgrid.PropertyGrid` does not support rows of different height, it makes little sense to change size of the font. Therefore it is recommended to use return value of :meth:`wx.propgrid.PropertyGrid.GetFont` or :meth:`wx.propgrid.PropertyGrid.GetCaptionFont` as a basis for the font that, after modifications, is passed to this member function.
.. method:: SetText(self, text : str)
:param `text`:
:type `text`: string
:rtype: `None`
.. attribute:: BgCol
See :meth:`~wx.propgrid.PGCell.GetBgCol` and :meth:`~wx.propgrid.PGCell.SetBgCol`
.. attribute:: Bitmap
See :meth:`~wx.propgrid.PGCell.GetBitmap` and :meth:`~wx.propgrid.PGCell.SetBitmap`
.. attribute:: Data
See :meth:`~wx.propgrid.PGCell.GetData`
.. attribute:: FgCol
See :meth:`~wx.propgrid.PGCell.GetFgCol` and :meth:`~wx.propgrid.PGCell.SetFgCol`
.. attribute:: Font
See :meth:`~wx.propgrid.PGCell.GetFont` and :meth:`~wx.propgrid.PGCell.SetFont`
.. attribute:: Text
See :meth:`~wx.propgrid.PGCell.GetText` and :meth:`~wx.propgrid.PGCell.SetText`