#NEWLINE# def add_widget( self , child ) : #NEWLINE# #INDENT# self . add_ref ( child ) #NEWLINE# child_w = child . get_widget ( ) #NEWLINE# if ( len ( self . children ) == 1 ) : #NEWLINE# #INDENT# self . widget . pack1 ( child_w ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# last = self . widget #NEWLINE# if ( len ( self . panes ) > 0 ) : #NEWLINE# #INDENT# last = self . panes [ ( - 1 ) ] #NEWLINE# #UNINDENT# w = self . _get_pane ( ) #NEWLINE# self . panes . append ( w ) #NEWLINE# w . pack1 ( child_w ) #NEWLINE# last . pack2 ( w ) #NEWLINE# #UNINDENT# self . widget . show_all ( )