DatePickerCtrl value test

Endre Szabo wrote:

Hi all
Given a DatePickerCtrl with ALLOW_NONE style set
(having a little checkbox). How can I test if thhe checkbox is checked or not -
the control has a valid value or not? (if ???):

  val = datectrl.GetValue()
  if val.IsValid():
    # do something

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!