#NEWLINE# def GetValue( self ) : #NEWLINE# #INDENT# 'Get the value from the editor' #NEWLINE# dt = wx . DatePickerCtrl . GetValue ( self ) #NEWLINE# if dt . IsOk ( ) : #NEWLINE# #INDENT# return datetime . date ( dt . Year , ( dt . Month + 1 ) , dt . Day ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return None