MCPcopy Index your code
hub / github.com/csev/py4e / undraw

Method undraw

code/graphics/graphics.py:469–482  ·  view source on GitHub ↗

Undraw the object (i.e. hide it). Returns silently if the object is not currently drawn.

(self)

Source from the content-addressed store, hash-verified

467 _tkCall(_root.update)
468
469 def undraw(self):
470
471 """Undraw the object (i.e. hide it). Returns silently if the
472 object is not currently drawn."""
473
474 if not self.canvas: return
475 if not self.canvas.isClosed():
476 #self.canvas.delete(self.id)
477 _tkExec(self.canvas.delete, self.id)
478 if self.canvas.autoflush:
479 #_root.update()
480 _tkCall(_root.update)
481 self.canvas = None
482 self.id = None
483
484 def move(self, dx, dy):
485

Callers

nothing calls this directly

Calls 3

_tkExecFunction · 0.85
_tkCallFunction · 0.85
isClosedMethod · 0.80

Tested by

no test coverage detected