AGW Logo

persist.persist_handlers functions

This is the description of standalone Python functions in the persist.persist_handlers module.

method_summary Functions Summary


CreateFont Creates a tuple of 7 wx.Font attributes from the font input parameter.
FindHandler Finds a suitable handler for the input Persistent Object depending on the
HasCtrlHandler Is there a suitable handler for this control
PyDate2wxDate Transforms a datetime.date object into a wx.DateTime one.
wxDate2PyDate Transforms a wx.DateTime object into a datetime.date one.

API Functions API



CreateFont(font)[source]

Creates a tuple of 7 wx.Font attributes from the font input parameter.

Parameters:font – a wx.Font instance.

Returns:A tuple of 7 wx.Font attributes from the font input parameter.


FindHandler(pObject)[source]

Finds a suitable handler for the input Persistent Object depending on the widget kind.

Parameters:pObject – an instance of PersistentObject class.


HasCtrlHandler(control)[source]

Is there a suitable handler for this control

Parameters:control – the control instance to check if a handler for it exists.


PyDate2wxDate(date)[source]

Transforms a datetime.date object into a wx.DateTime one.

Parameters:date – a datetime.date object.


wxDate2PyDate(date)[source]

Transforms a wx.DateTime object into a datetime.date one.

Parameters:date – a wx.DateTime object.

Tree

Table Of Contents

Previous topic

TreebookHandler

Next topic

SVN Revision 69550 For persist_handlers