def showCatalogInfo(gui): """ Shows the catalog information from the currently loaded catalog. :param tkwidget gui: GUI object from which the request came """ prt = gui.getPrtInstance() if not (ASTCatalog.isCatalogLoaded()): ASTMsg.errMsg("No catalog is currently loaded.", "No Catalog Loaded") else: prt.clearTextArea() ASTCatalog.displayCatalogInfo() prt.resetCursor()
def listAllObjsInCatalog(gui): """ Shows all catalog information, including space objects, in the currently loaded catalog. :param tkwidget gui: GUI object from which the request came """ prt = gui.getPrtInstance() if (not ASTCatalog.isCatalogLoaded()): ASTMsg.errMsg("No catalog is currently loaded.", "No Catalog Loaded") return prt.clearTextArea() ASTCatalog.displayCatalogInfo() prt.setFixedWidthFont() prt.println("*" * 80) ASTCatalog.displayAllCatalogObjects() prt.setProportionalFont() prt.resetCursor()