wx.propgrid.PGCell¶
Base class for wx.propgrid.PropertyGrid cell information.
Class Hierarchy¶
Known Subclasses¶
Methods Summary¶
Returns font of the cell. |
|
Returns |
|
Merges valid data from srcCell into this. |
|
Sets empty but valid data to this cell object. |
|
Sets font of the cell. |
|
Properties Summary¶
See |
|
Class API¶
- class wx.propgrid.PGCell(Object)¶
Possible constructors:
PGCell() -> None PGCell(other) -> None PGCell(text, bitmap=BitmapBundle(), fgCol=NullColour, bgCol=NullColour) -> None
Base class for PropertyGrid cell information.
Methods¶
- __init__(self, *args, **kw)¶
-
__init__ (self)
- Return type:
None
__init__ (self, other)
- Parameters:
other (wx.propgrid.PGCell)
- Return type:
None
__init__ (self, text, bitmap=BitmapBundle(), fgCol=NullColour, bgCol=NullColour)
- Parameters:
text (string)
bitmap (wx.BitmapBundle)
fgCol (wx.Colour)
bgCol (wx.Colour)
- Return type:
None
- GetBgCol(self)¶
- Return type:
Colour
- GetBitmap(self)¶
- Return type:
BitmapBundle
- GetData(self)¶
- Return type:
- GetFgCol(self)¶
- Return type:
Colour
- GetFont(self)¶
Returns font of the cell.
If no specific font is set for this cell, then the font will be invalid.
- Return type:
- GetText(self)¶
- Return type:
str
- HasText(self)¶
Returns
True
if this cell has custom text stored within.- Return type:
bool
- MergeFrom(self, srcCell)¶
Merges valid data from srcCell into this.
- Parameters:
srcCell (wx.propgrid.PGCell)
- Return type:
None
- SetBitmap(self, bitmap)¶
- Parameters:
bitmap (wx.BitmapBundle)
- Return type:
None
- SetEmptyData(self)¶
Sets empty but valid data to this cell object.
- Return type:
None
- SetFont(self, font)¶
Sets font of the cell.
- Parameters:
font (wx.Font)
- Return type:
None
Note
Because 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
wx.propgrid.PropertyGrid.GetFont
orwx.propgrid.PropertyGrid.GetCaptionFont
as a basis for the font that, after modifications, is passed to this member function.
- SetText(self, text)¶
- Parameters:
text (string)
- Return type:
None
Properties¶