#NEWLINE# def event( self , event ) : #NEWLINE# #INDENT# ' A custom event handler for the scroll area.\n\n        This handler dispatches layout requests and paints the empty\n        corner between the scroll bars.\n\n        ' #NEWLINE# res = super ( QCustomScrollArea , self ) . event ( event ) #NEWLINE# event_t = event . type ( ) #NEWLINE# if ( event_t == QEvent . Paint ) : #NEWLINE# #INDENT# color = QApplication . palette ( ) . color ( QPalette . Window ) #NEWLINE# tl = self . viewport ( ) . geometry ( ) . bottomRight ( ) #NEWLINE# fw = self . frameWidth ( ) #NEWLINE# br = ( self . rect ( ) . bottomRight ( ) - QPoint ( fw , fw ) ) #NEWLINE# QPainter ( self ) . fillRect ( QRect ( tl , br ) , color ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( event_t == QEvent . LayoutRequest ) : #NEWLINE# #INDENT# self . _size_hint = QSize ( ) #NEWLINE# self . layoutRequested . emit ( ) #NEWLINE# #UNINDENT# #UNINDENT# return res