def DestroyInteractiveWindow():
 global edit
 if ((edit is not None) and (edit.currentView is not None)):
  if (edit.currentView.GetParentFrame() == win32ui.GetMainFrame()):
   pass
  else:
   edit.Close()
   edit = None

def DestroyInteractiveWindow ( ) : global edit if ( ( edit is not None ) and ( edit . currentView is not None ) ) : if ( edit . currentView . GetParentFrame ( ) == win32ui . GetMainFrame ( ) ) : pass else : edit . Close ( ) edit = None
destroy the interactive window .