#NEWLINE# def __opDialogueCommand( self , op ) : #NEWLINE# #INDENT# def showDialogue( menu ) : #NEWLINE# #INDENT# dialogue = GafferUI . OpDialogue ( op , postExecuteBehaviour = GafferUI . OpDialogue . PostExecuteBehaviour . Close , executeInBackground = True ) #NEWLINE# dialogue . waitForResult ( parentWindow = menu . ancestor ( GafferUI . Window ) ) #NEWLINE# #UNINDENT# return showDialogue