def CloseInteractiveWindow():
 global edit
 if ((edit is not None) and (edit.currentView is not None)):
  if (edit.currentView.GetParentFrame() == win32ui.GetMainFrame()):
   frame = win32ui.GetMainFrame()
   cb = frame.GetControlBar(ID_DOCKED_INTERACTIVE_CONTROLBAR)
   frame.ShowControlBar(cb, 0, 1)
  else:
   edit.currentView.GetParentFrame().DestroyWindow()

def CloseInteractiveWindow ( ) : global edit if ( ( edit is not None ) and ( edit . currentView is not None ) ) : if ( edit . currentView . GetParentFrame ( ) == win32ui . GetMainFrame ( ) ) : frame = win32ui . GetMainFrame ( ) cb = frame . GetControlBar ( ID_DOCKED_INTERACTIVE_CONTROLBAR ) frame . ShowControlBar ( cb , 0 , 1 ) else : edit . currentView . GetParentFrame ( ) . DestroyWindow ( )
close the interactive window .