#NEWLINE# def paintEvent( self , event ) : #NEWLINE# #INDENT# if self . isVisible ( ) : #NEWLINE# #INDENT# self . _background_brush = QtGui . QBrush ( QtGui . QColor ( self . palette ( ) . window ( ) . color ( ) ) ) #NEWLINE# self . _foreground_pen = QtGui . QPen ( QtGui . QColor ( self . palette ( ) . windowText ( ) . color ( ) ) ) #NEWLINE# painter = QtGui . QPainter ( self ) #NEWLINE# painter . fillRect ( event . rect ( ) , self . _background_brush )