Undraw the object (i.e. hide it). Returns silently if the object is not currently drawn.
(self)
| 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 |