#NEWLINE# def drawBackground( self , painter , rect ) : #NEWLINE# #INDENT# 'When an area of the window is exposed, we just copy out of the\n        server-side, off-screen pixmap to that area.\n        ' #NEWLINE# if ( not self . pixmap ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# ( x1 , y1 , x2 , y2 ) = rect . getCoords ( ) #NEWLINE# width = ( x2 - x1 ) #NEWLINE# height = ( y2 - y1 ) #NEWLINE# rect = QtCore . QRect ( x1 , y1 , width , height ) #NEWLINE# painter . drawPixmap ( rect , self . pixmap , rect )