diff options
Diffstat (limited to 'Lib/lib-tk/Canvas.py')
-rw-r--r-- | Lib/lib-tk/Canvas.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/lib-tk/Canvas.py b/Lib/lib-tk/Canvas.py index ed4ba34..ae2ced1 100644 --- a/Lib/lib-tk/Canvas.py +++ b/Lib/lib-tk/Canvas.py @@ -39,6 +39,8 @@ class CanvasItem: return self._keys def has_key(self, key): return key in self.keys() + def __contains__(self, key): + return key in self.keys() def addtag(self, tag, option='withtag'): self.canvas.addtag(tag, option, self.id) def bbox(self): |