def draw_idle(self):
d = self._idle<EOL>self._idle = False<EOL>def idle_draw(*args):<EOL><INDENT>self.draw()<EOL>self._idle = True<EOL><DEDENT>if d:<EOL><INDENT>self._tkcanvas.after_idle(idle_draw)<EOL><DEDENT>
update drawing area only if idle