#NEWLINE# def _plug_area_center( area , widget , frame , guide ) : #NEWLINE# #INDENT# ' Plug the frame as the area center.\n\n    ' #NEWLINE# if ( widget is not None ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if isinstance ( frame , QDockWindow ) : #NEWLINE# #INDENT# temp_area = frame . dockArea ( ) #NEWLINE# frame . setDockArea ( None ) #NEWLINE# _merge_dock_bars ( area , temp_area ) #NEWLINE# area . setCentralWidget ( temp_area . centralWidget ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if frame . isWindow ( ) : #NEWLINE# #INDENT# frame . unfloat ( ) #NEWLINE# #UNINDENT# area . setCentralWidget ( area ) #NEWLINE# #UNINDENT# return True