#NEWLINE# def _tab_insert_cb( self , nbw , nchild_w , page_num ) : #NEWLINE# #INDENT# global _widget_move_event #NEWLINE# if ( _widget_move_event is not None ) : #NEWLINE# #INDENT# ( event , _widget_move_event ) = ( _widget_move_event , None ) #NEWLINE# already_here = ( nchild_w in self . _get_native_children ( ) ) #NEWLINE# if ( ( not already_here ) and ( event . child . get_widget ( ) == nchild_w ) ) : #NEWLINE# #INDENT# child = event . child #NEWLINE# event . src_widget . children . remove ( child ) #NEWLINE# self . add_ref ( child ) #NEWLINE# self . make_callback ( 'page-move' , event . src_widget , child )