Package peppy :: Package lib :: Module userparams :: Class DateParam
[frames] | no frames]

Class DateParam

      object --+        
               |        
debug.debugmixin --+    
                   |    
               Param --+
                       |
                      DateParam

Date parameter that displays a DatePickerCtrl as its user interface.

The wx.DateTime class is used as the value.

Instance Methods
 
getCtrl(self, parent, initial=None)
Create and editing control.
 
textToValue(self, text)
Convert the user's config text to the type expected by the python code.
 
valueToText(self, dt)
Convert the user value to a string suitable to be written to the config file.
 
getValue(self, ctrl)
Get the user value from the control.

Inherited from Param: OnCallback, __init__, __str__, getLabel, isSettable, isVisible, processCallback, setCallback, setInitialState, setValue, setValueWithoutCallback

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Class Methods

Inherited from debug.debugmixin: dprint

Class Variables
  default = <wx.DateTime: "Thu Feb 21 00:00:00 2008" at _90991d0...
  callback_event = None

Inherited from debug.debugmixin: debuglevel

Properties

Inherited from object: __class__

Method Details

getCtrl(self, parent, initial=None)

 

Create and editing control.

Given the parent window, create a user interface element to edit the param.

Overrides: Param.getCtrl
(inherited documentation)

textToValue(self, text)

 

Convert the user's config text to the type expected by the python code.

Subclasses should return the type expected by the user code.

Overrides: Param.textToValue
(inherited documentation)

valueToText(self, dt)

 

Convert the user value to a string suitable to be written to the config file.

Subclasses should convert the value to a string that is acceptable to textToValue.

Overrides: Param.valueToText
(inherited documentation)

getValue(self, ctrl)

 

Get the user value from the control.

If the control doesn't automatically return a value of the correct type, convert it here.

Overrides: Param.getValue
(inherited documentation)

Class Variable Details

default

Value:
<wx.DateTime: "Thu Feb 21 00:00:00 2008" at _90991d0400000000_p_wxDate\
Time>