def __init__(self): #default location is Home self.location = Layouts.HOME self.controller = TensorController(self) self.content = ContentManager(self) self.layouts = LayoutManager(self) self.keyBindings = KeyBindingsManager(self) #initialize only after all managers have been instantiated due to cyclic dependencies between them self.controller.initializeController() self.content.initializeContent() self.layouts.initializeLayouts() self.keyBindings.initializeKeyBinds() #the prompt_toolkit Application object self.app = self.initializeApp()