def configPrint(): text="" if config_readme: text += config_readme text += "\n\nFor further help see the configuration file," else: text += "There is no help on configuration (maybe there is no config.py file at all)," if main_help_pages: text += """ for help on imported modules type :help module <name>, <name> can be:"""; i=0 for s in sorted(main_help_pages): if i>0 and i % 6 == 0: text += "\n " text+=" "+s+"," i+=1 text+="\nfor general help type :help." gf.printCentered(text)
def printPage(name): help_page=help_pages[name] if not help_page: raise RuntimeException("help " + name + " not found") gf.clear() gf.printCentered(help_pages[name])