From e9c515adc7b09ec76b2f51240dc430c467234eda Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 26 Sep 1996 20:21:26 +0000 Subject: [PATCH] (Canvas.py): Added definition of CanvasItem.cget() as suggested by Nils Fischbeck. --- Lib/lib-tk/Canvas.py | 1 + Lib/tkinter/Canvas.py | 1 + 2 files changed, 2 insertions(+) diff --git a/Lib/lib-tk/Canvas.py b/Lib/lib-tk/Canvas.py index 51692e1138b..6eccd4d769f 100644 --- a/Lib/lib-tk/Canvas.py +++ b/Lib/lib-tk/Canvas.py @@ -22,6 +22,7 @@ class CanvasItem: self.canvas._w, 'itemconfigure', self.id, '-' + key)) return v[4] + cget = __getitem__ def __setitem__(self, key, value): self.canvas.itemconfig(self.id, {key: value}) def keys(self): diff --git a/Lib/tkinter/Canvas.py b/Lib/tkinter/Canvas.py index 51692e1138b..6eccd4d769f 100755 --- a/Lib/tkinter/Canvas.py +++ b/Lib/tkinter/Canvas.py @@ -22,6 +22,7 @@ class CanvasItem: self.canvas._w, 'itemconfigure', self.id, '-' + key)) return v[4] + cget = __getitem__ def __setitem__(self, key, value): self.canvas.itemconfig(self.id, {key: value}) def keys(self):