Phoenix Logo

phoenix_title wx.grid.GridCellDateTimeRenderer

This class may be used to format a date/time data in a cell.

The class wx.DateTime is used internally to display the local date/time or to parse the string date entered in the cell thanks to the defined format.


class_hierarchy Class Hierarchy

Inheritance diagram for class GridCellDateTimeRenderer:


method_summary Methods Summary

__init__ Date/time renderer constructor.
SetParameters Sets the strptime()-like format string which will be used to parse the date/time.

api Class API



class wx.grid.GridCellDateTimeRenderer(GridCellStringRenderer)

Possible constructors:

GridCellDateTimeRenderer(outformat=DefaultDateTimeFormat,
                         informat=DefaultDateTimeFormat)

This class may be used to format a date/time data in a cell.


Methods



__init__(self, outformat=DefaultDateTimeFormat, informat=DefaultDateTimeFormat)

Date/time renderer constructor.

Parameters:
  • outformat (string) – strptime()-like format string used the parse the output date/time.
  • informat (string) – strptime()-like format string used to parse the string entered in the cell.


SetParameters(self, params)

Sets the strptime()-like format string which will be used to parse the date/time.

Parameters:params (string) – strptime()-like format string used to parse the date/time.