#NEWLINE# def close_vistrail( self , item ) : #NEWLINE# #INDENT# if ( ( item . parent ( ) == self . openFilesItem ) and hasattr ( item , 'window' ) ) : #NEWLINE# #INDENT# from vistrails.gui.vistrails_window import _app #NEWLINE# _app . close_vistrail ( item . window )