#NEWLINE# def paintEvent( self , QPaintEvent ) : #NEWLINE# #INDENT# "\n        self is derived from QWidget, Stylesheets don't work unless         paintEvent is reimplemented.y\n        at the same time, if self is derived from QFrame, this isn't needed.\n        " #NEWLINE# option = QStyleOption ( ) #NEWLINE# option . initFrom ( self ) #NEWLINE# painter = QPainter ( self ) #NEWLINE# style = self . style ( ) #NEWLINE# style . drawPrimitive ( QStyle . PE_Widget , option , painter , self )