wx.grid.GridCellDateRenderer¶
This class may be used to show a date, without time, in a cell.
See wx.grid.GridCellDateTimeRenderer for a date/time version. wx.DateTime.Format
is used internally to render the date representation. wx.DateTime.ParseDate
is used to parse the string data entered in the cell.
Added in version 4.1/wxWidgets-3.1.3.
See also
wx.grid.GridCellRenderer, wx.grid.GridCellAutoWrapStringRenderer, wx.grid.GridCellBoolRenderer, wx.grid.GridCellEnumRenderer, wx.grid.GridCellFloatRenderer, wx.grid.GridCellNumberRenderer, wx.grid.GridCellStringRenderer, wx.grid.GridCellDateTimeRenderer
Class Hierarchy¶
Known Subclasses¶
wx.grid.GridCellDateTimeRenderer
Methods Summary¶
Date renderer constructor. |
|
Sets the strftime()-like format string which will be used to render the date. |
Class API¶
- class wx.grid.GridCellDateRenderer(GridCellStringRenderer)¶
Possible constructors:
GridCellDateRenderer(outformat="") -> None
This class may be used to show a date, without time, in a cell.
Methods¶
- __init__(self, outformat='')¶
Date renderer constructor.
- Parameters:
outformat (string) – strftime()-like format string used to render the output date. By default (or if provided format string is empty) localized date representation (“%x”) is used.
- Return type:
None
- SetParameters(self, params)¶
Sets the strftime()-like format string which will be used to render the date.
- Parameters:
params (string) – strftime()-like format string used to render the date.
- Return type:
None