Show a single block on screen
(self,index=None)
| 415 | self() |
| 416 | |
| 417 | def show(self,index=None): |
| 418 | """Show a single block on screen""" |
| 419 | |
| 420 | index = self._get_index(index) |
| 421 | if index is None: |
| 422 | return |
| 423 | |
| 424 | print(self.marquee('<%s> block # %s (%s remaining)' % |
| 425 | (self.title,index,self.nblocks-index-1))) |
| 426 | print(self.src_blocks_colored[index]) |
| 427 | sys.stdout.flush() |
| 428 | |
| 429 | def show_all(self): |
| 430 | """Show entire demo on screen, block by block""" |
no test coverage detected