wx.propgrid.PGDefaultRenderer¶
Default cell renderer, that can handles the common scenarios.
Class Hierarchy¶
Methods Summary¶
Returns size of the image in front of the editable area. |
|
Returns |
Class API¶
- class wx.propgrid.PGDefaultRenderer(PGCellRenderer)¶
Default cell renderer, that can handles the common scenarios.
Methods¶
- GetImageSize(self, property, column, item)¶
Returns size of the image in front of the editable area.
- Parameters:
property (wx.propgrid.PGProperty)
column (int)
item (int)
- Return type:
Size
Note
If property is
None
, then this call is for a custom value. In that case the item is index to wx.propgrid.PropertyGrid’s custom values.
- Render(self, dc, rect, propertyGrid, property, column, item, flags)¶
Returns
True
if rendered something in the foreground (text or bitmap.- Parameters:
rect (wx.Rect) – Box reserved for drawing.
propertyGrid (wx.propgrid.PropertyGrid) – Property grid in which property is displayed.
property (wx.propgrid.PGProperty) – Property to be rendered.
column (int) – Property cell column.
item (int) – Index of chosen item if combo popup is drawn, -1 otherwise.
flags (int) – See list of render flags.
- Return type:
bool