def update(self):
if self.useblit:<EOL><INDENT>if self.background is not None:<EOL><INDENT>self.canvas.restore_region(self.background)<EOL><DEDENT>self.ax.draw_artist(self.rect)<EOL>self.canvas.blit(self.ax.bbox)<EOL><DEDENT>else:<EOL><INDENT>self.canvas.draw_idle()<EOL><DEDENT>return False<EOL>
draw using newfangled blit or oldfangled draw depending on useblit