#NEWLINE# def refresh( self ) : #NEWLINE# #INDENT# '\n        Flush the canvas content to the underlying screen.\n        ' #NEWLINE# for y in range ( self . height ) : #NEWLINE# #INDENT# for x in range ( self . width ) : #NEWLINE# #INDENT# c = self . _double_buffer [ ( y + self . _start_line ) ] [ x ] #NEWLINE# self . _screen . print_at ( c [ 0 ] , ( x + self . _dx ) , ( y + self . _dy ) , c [ 1 ] , c [ 2 ] , c [ 3 ] )