#NEWLINE# def updateStatus( self ) : #NEWLINE# #INDENT# if ( self . offset > 0 ) : #NEWLINE# #INDENT# self . prevButton . show ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . prevButton . hide ( ) #NEWLINE# #UNINDENT# last = ( last . offset + self . limit ) #NEWLINE# if ( last < self . numRows ) : #NEWLINE# #INDENT# self . nextButton . show ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . nextButton . hide ( ) #NEWLINE# last = self . numRows #NEWLINE# #UNINDENT# if self . numRows : #NEWLINE# #INDENT# self . statusText . setText ( ( 'Showing %s-%s out of %s results' % ( ( self . offset + 1 ) , last , self . numRows ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . statusText . setText ( 'No matching results found' )