Property representing wx.DateTime.
Supported special attributes:
wx.adv.DP_DEFAULT
| wx.adv.DP_SHOWCENTURY
. Using wx.adv.DP_ALLOWNONE
enables additional support for unspecified property value.__init__ |
|
DoSetAttribute |
Reimplement this member function to add special handling for attributes of this property. |
GetDatePickerStyle |
|
GetDateValue |
|
GetFormat |
|
OnSetValue |
This virtual function is called after m_value has been set. |
SetDateValue |
|
SetFormat |
|
StringToValue |
Converts text into Variant value appropriate for this property. |
ValueToString |
Converts property value into a text representation. |
DatePickerStyle |
See GetDatePickerStyle |
DateValue |
See GetDateValue and SetDateValue |
Format |
See GetFormat and SetFormat |
wx.propgrid.
DateProperty
(PGProperty)¶Possible constructors:
DateProperty(label=PG_LABEL, name=PG_LABEL, value=DateTime())
Property representing DateTime.
__init__
(self, label=PG_LABEL, name=PG_LABEL, value=DateTime())¶Parameters: |
|
---|
DoSetAttribute
(self, name, value)¶Reimplement this member function to add special handling for attributes of this property.
Parameters: |
|
---|---|
Return type: | bool |
Returns: | Return |
Note
To actually set property attribute values from the application, use wx.propgrid.PGProperty.SetAttribute
instead.
GetDatePickerStyle
(self)¶Return type: | long |
---|
GetDateValue
(self)¶Return type: | DateTime |
---|
GetFormat
(self)¶Return type: | string |
---|
OnSetValue
(self)¶This virtual function is called after m_value has been set.
Note
OnSetValue
will not be called.OnSetValue
provides a good opportunity to convert supported values into internal type.SetDateValue
(self, dt)¶Parameters: | dt (wx.DateTime) – |
---|
SetFormat
(self, format)¶Parameters: | format (string) – |
---|
StringToValue
(self, variant, text, argFlags=0)¶Converts text into Variant value appropriate for this property.
Parameters: |
|
---|---|
Return type: | bool |
You might want to take into account that m_value is Null variant if property value is unspecified (which is usually only case if you explicitly enabled that sort behaviour).
Returns: | Returns True if resulting Variant value was different. |
---|
Note
Default implementation converts semicolon delimited tokens into child values. Only works for properties with children.
ValueToString
(self, value, argFlags=0)¶Converts property value into a text representation.
Parameters: |
|
---|---|
Return type: |
|
Note
Default implementation calls GenerateComposedValue
.
DatePickerStyle
¶DateValue
¶See GetDateValue
and SetDateValue