def close_others(self, all_open_outputs=False): """Close all other windows that belong to the current command. Args: all_open_outputs (bool): Close all any other windows if True """ if all_open_outputs: ScriptConsoleManager.CloseActiveOutputWindows(self.window) else: ScriptConsoleManager.CloseActiveOutputWindows(self.window, self.output_id)
def docclosing_eventhandler(sender, args): #pylint: disable=W0613 """Close all output window on document closing.""" ScriptConsoleManager.CloseActiveOutputWindows()