#NEWLINE# def _paint( self , event ) : #NEWLINE# #INDENT# ' Handles repainting the window.\n        ' #NEWLINE# if ( is_mac and self . _is_child_paint ( ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# sizer = self . sizer #NEWLINE# if isinstance ( sizer , DockSizer ) : #NEWLINE# #INDENT# sizer . Draw ( self . control ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# clear_window ( self . control )