def CreateInteractiveWindow(makeDoc=None, makeFrame=None):
 assert (edit is None), 'Creating second interactive window!'
 bDocking = LoadPreference('Docking', 0)
 if bDocking:
  CreateDockedInteractiveWindow()
 else:
  CreateMDIInteractiveWindow(makeDoc, makeFrame)
 assert (edit is not None), 'Created interactive window, but did not set the global!'
 edit.currentView.SetFocus()

def CreateInteractiveWindow ( makeDoc = None , makeFrame = None ) : assert ( edit is None ) , 'Creating second interactive window!' bDocking = LoadPreference ( 'Docking' , 0 ) if bDocking : CreateDockedInteractiveWindow ( ) else : CreateMDIInteractiveWindow ( makeDoc , makeFrame ) assert ( edit is not None ) , 'Created interactive window, but did not set the global!' edit . currentView . SetFocus ( )
create a standard or docked interactive window unconditionally .