Handler for getting events. By default, gets the next frame in the sequence and hands the data off to be drawn.
(self, *args)
| 1142 | writer.grab_frame(**savefig_kwargs) |
| 1143 | |
| 1144 | def _step(self, *args): |
| 1145 | """ |
| 1146 | Handler for getting events. By default, gets the next frame in the |
| 1147 | sequence and hands the data off to be drawn. |
| 1148 | """ |
| 1149 | # Returns True to indicate that the event source should continue to |
| 1150 | # call _step, until the frame sequence reaches the end of iteration, |
| 1151 | # at which point False will be returned. |
| 1152 | try: |
| 1153 | framedata = next(self.frame_seq) |
| 1154 | self._draw_next_frame(framedata, self._blit) |
| 1155 | return True |
| 1156 | except StopIteration: |
| 1157 | return False |
| 1158 | |
| 1159 | def new_frame_seq(self): |
| 1160 | """Return a new sequence of frame information.""" |