(self)
| 65 | return "Type %s() to see the full %s text" % ((self.__name,)*2) |
| 66 | |
| 67 | def __call__(self): |
| 68 | self.__setup() |
| 69 | prompt = 'Hit Return for more, or q (and Return) to quit: ' |
| 70 | lineno = 0 |
| 71 | while 1: |
| 72 | try: |
| 73 | for i in range(lineno, lineno + self.MAXLINES): |
| 74 | print(self.__lines[i]) |
| 75 | except IndexError: |
| 76 | break |
| 77 | else: |
| 78 | lineno += self.MAXLINES |
| 79 | key = None |
| 80 | while key is None: |
| 81 | key = input(prompt) |
| 82 | if key not in ('', 'q'): |
| 83 | key = None |
| 84 | if key == 'q': |
| 85 | break |
| 86 | |
| 87 | |
| 88 | class _Helper(object): |