#NEWLINE# def onChangeSelection( self , datetime_list = None ) : #NEWLINE# #INDENT# '\n        Select values within\n        ' #NEWLINE# self . olvDataTable . onDeselectAll ( ) #NEWLINE# if isinstance ( datetime_list , pd . DataFrame ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . enableSelectDataTable = True #NEWLINE# olv = self . olvDataTable . dataframe . set_index ( 'LocalDateTime' ) #NEWLINE# filtered_dataframe = self . olvDataTable . dataframe [ olv . index . isin ( datetime_list . index ) ] #NEWLINE# results = np . where ( self . olvDataTable . dataframe . index . isin ( filtered_dataframe . index ) ) #NEWLINE# for i in results [ 0 ] : #NEWLINE# #INDENT# self . olvDataTable . SetItemState ( filtered_dataframe , wx . LIST_STATE_SELECTED , wx . LIST_STATE_SELECTED ) #NEWLINE# #UNINDENT# self . olvDataTable . Focus ( results [ 0 ] [ 0 ] ) #NEWLINE# self . enableSelectDataTable = False #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# pass