wx.DatePickerCtrl

I am new to wx.python and programming in general. It is going fairly well but
I am trying to set up a search form where one of the optional parameters is a
date field. I like the look of the wx.DatePickerCtrl but I can't figure out if
it is possible to place it on a form without it preselecting a date.

I want the option of being able to search without including date information as
well as an easy way to have the user select a date. Is there a way to put
wx.DatePickerCtl on a frame/panel without a date value (a null or blank value),
then if the drop down arrow is selected to load a default value. As it is now
when the routine checks for a value it always supplies the default value and
the documentation only allows for a valid date for the set value. I am looking
for a way to use a null or blank value. Is this possible?

Hi Tom,

ยทยทยท

2007/5/25, Tom Keating <1beast@comcast.net>:

I am new to wx.python and programming in general. It is going fairly well but
I am trying to set up a search form where one of the optional parameters is a
date field. I like the look of the wx.DatePickerCtrl but I can't figure out if
it is possible to place it on a form without it preselecting a date.

There's the wx.DP_ALLOWNONE style. According to the docs, "With this
style, the control allows the user to not enter any valid date at all.
Without it - the default - the control always has some valid date."

HTH, Frank