#NEWLINE# def remove_widget( self , widget ) : #NEWLINE# #INDENT# self . content = None #NEWLINE# if ( not self . parent ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# panel = self . parent . tabbed_panel #NEWLINE# if ( widget . current_tab == self ) : #NEWLINE# #INDENT# panel . remove_widget ( widget )