#NEWLINE# def setDates( self ) : #NEWLINE# #INDENT# idx = self . recordService . get_series_points ( ) . index #NEWLINE# dateAfter = idx [ 0 ] #NEWLINE# dateBefore = idx [ ( - 1 ) ] #NEWLINE# formattedDateAfter = _pydate2wxdate ( dateAfter ) #NEWLINE# formattedDateBefore = _pydate2wxdate ( dateBefore ) #NEWLINE# self . dpAfter . SetRange ( formattedDateAfter , formattedDateBefore ) #NEWLINE# self . dpBefore . SetRange ( formattedDateAfter , formattedDateBefore ) #NEWLINE# self . dpAfter . SetValue ( formattedDateAfter ) #NEWLINE# self . tpBefore . SetValue ( wx . DateTimeFromHMS ( hour = 23 , minute = 59 , second = 59 ) ) #NEWLINE# self . dpBefore . SetValue ( formattedDateBefore )