#NEWLINE# def iter_handles( area ) : #NEWLINE# #INDENT# ' Iterate the splitter handles in a dock layout.\n\n    Parameters\n    ----------\n    area : QDockArea\n        The dock area containing the dock layout of interest.\n\n    Returns\n    -------\n    result : generator\n        A generator which yields the QDockSplitterHandle instances\n        contained within the dock area layout.\n\n    ' #NEWLINE# stack = [ area . centralWidget ( ) ] #NEWLINE# while stack : #NEWLINE# #INDENT# widget = stack . pop ( ) #NEWLINE# if isinstance ( widget , QDockSplitter ) : #NEWLINE# #INDENT# for index in xrange ( 1 , widget . count ( ) ) : #NEWLINE# #INDENT# ( yield widget . handle ( index ) ) #NEWLINE# #UNINDENT# for index in xrange ( widget . count ( ) ) : #NEWLINE# #INDENT# stack . append ( widget . widget ( index ) )