Phoenix Logo

phoenix_title wx.propgrid.PGCell

Base class for wx.propgrid.PropertyGrid cell information.


class_hierarchy Class Hierarchy

Inheritance diagram for class PGCell:

method_summary Methods Summary

__init__  
GetBgCol  
GetBitmap  
GetData  
GetFgCol  
GetFont Returns font of the cell.
GetText  
HasText Returns True if this cell has custom text stored within.
MergeFrom Merges valid data from srcCell into this.
SetBgCol  
SetBitmap  
SetFgCol  
SetFont Sets font of the cell.
SetText  

property_summary Properties Summary

BgCol See GetBgCol and SetBgCol
Bitmap See GetBitmap and SetBitmap
Data See GetData
FgCol See GetFgCol and SetFgCol
Font See GetFont and SetFont
Text See GetText and SetText

api Class API



class wx.propgrid.PGCell(Object)

Possible constructors:

PGCell()

PGCell(other)

PGCell(text, bitmap=NullBitmap, fgCol=NullColour, bgCol=NullColour)

Base class for PropertyGrid cell information.


Methods



__init__(self, *args, **kw)

overload Overloaded Implementations:



__init__ (self)



__init__ (self, other)

Parameters:other (wx.propgrid.PGCell) –



__init__ (self, text, bitmap=NullBitmap, fgCol=NullColour, bgCol=NullColour)

Parameters:





GetBgCol(self)
Return type:Colour


GetBitmap(self)
Return type:Bitmap


GetData(self)
Return type: wx.propgrid.PGCellData


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:Font


GetText(self)
Return type:string


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) –


SetBgCol(self, col)
Parameters:col (wx.Colour) –


SetBitmap(self, bitmap)
Parameters:bitmap (wx.Bitmap) –


SetFgCol(self, col)
Parameters:col (wx.Colour) –


SetFont(self, font)

Sets font of the cell.

Parameters:font (wx.Font) –

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 or wx.propgrid.PropertyGrid.GetCaptionFont as a basis for the font that, after modifications, is passed to this member function.



SetText(self, text)
Parameters:text (string) –

Properties



BgCol

See GetBgCol and SetBgCol



Bitmap

See GetBitmap and SetBitmap



Data

See GetData



FgCol

See GetFgCol and SetFgCol



Font

See GetFont and SetFont



Text

See GetText and SetText