diff options
author | Fred Drake <fdrake@acm.org> | 1996-09-26 20:21:26 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1996-09-26 20:21:26 (GMT) |
commit | e9c515adc7b09ec76b2f51240dc430c467234eda (patch) | |
tree | 2f2eb58071d8b1eca448d5328b8c29f5a950f68b /Lib/tkinter | |
parent | a1560cfb294f35e5d295b13f372eac0a5d7f59d7 (diff) | |
download | cpython-e9c515adc7b09ec76b2f51240dc430c467234eda.zip cpython-e9c515adc7b09ec76b2f51240dc430c467234eda.tar.gz cpython-e9c515adc7b09ec76b2f51240dc430c467234eda.tar.bz2 |
(Canvas.py): Added definition of CanvasItem.cget() as suggested by
Nils Fischbeck.
Diffstat (limited to 'Lib/tkinter')
-rwxr-xr-x | Lib/tkinter/Canvas.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/tkinter/Canvas.py b/Lib/tkinter/Canvas.py index 51692e1..6eccd4d 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): |