#NEWLINE# def accept( self , startRow , data ) : #NEWLINE# #INDENT# destRowCount = self . owner . getDataRowCount ( ) #NEWLINE# destColCount = self . owner . grid . getCellCount ( 0 ) #NEWLINE# srcRowIndex = 0 #NEWLINE# srcRowCount = len ( data ) #NEWLINE# destRowIndex = 1 #NEWLINE# while ( srcRowIndex < srcRowCount ) : #NEWLINE# #INDENT# srcRowData = data [ srcRowIndex ] #NEWLINE# for srcColIndex in range ( destColCount ) : #NEWLINE# #INDENT# cellHTML = srcRowData [ srcColIndex ] #NEWLINE# self . owner . grid . setText ( destRowIndex , srcColIndex , cellHTML ) #NEWLINE# #UNINDENT# srcRowIndex += 1 #NEWLINE# destRowIndex += 1 #NEWLINE# #UNINDENT# isLastPage = False #NEWLINE# while ( destRowIndex < ( destRowCount + 1 ) ) : #NEWLINE# #INDENT# isLastPage = True #NEWLINE# for destColIndex in range ( destColCount ) : #NEWLINE# #INDENT# self . owner . grid . clearCell ( destRowIndex , destColIndex ) #NEWLINE# #UNINDENT# destRowIndex += 1 #NEWLINE# #UNINDENT# self . owner . navbar . gotoNext . setEnabled ( ( not isLastPage ) ) #NEWLINE# self . owner . navbar . gotoFirst . setEnabled ( ( startRow > 0 ) ) #NEWLINE# self . owner . navbar . gotoPrev . setEnabled ( ( startRow > 0 ) ) #NEWLINE# self . owner . setStatusText ( ( ( str ( ( startRow + 1 ) ) + ' - ' ) + str ( ( startRow + srcRowCount ) ) ) )