Append a drawing to the story for special function names.
(self, name, doc, sig)
| 367 | |
| 368 | |
| 369 | def endFunction(self, name, doc, sig): |
| 370 | "Append a drawing to the story for special function names." |
| 371 | |
| 372 | if name[:6] != 'sample': |
| 373 | return |
| 374 | |
| 375 | if VERBOSE: |
| 376 | print 'GraphPdfDocBuilder.endFunction(%s...)' % name |
| 377 | PdfDocBuilder0.endFunction(self, name, doc, sig) |
| 378 | aFunc = eval('self.skeleton.moduleSpace.' + name) |
| 379 | drawing = aFunc() |
| 380 | |
| 381 | self.story.append(Spacer(0*cm, 0.5*cm)) |
| 382 | self._showFunctionDemoCode(aFunc) |
| 383 | self.story.append(Spacer(0*cm, 0.5*cm)) |
| 384 | self._showDrawingDemo(drawing) |
| 385 | |
| 386 | self.story.append(PageBreak()) |
| 387 | |
| 388 | |
| 389 | def _showFunctionDemoCode(self, function): |
no test coverage detected