diff options
author | Fred Drake <fdrake@acm.org> | 1997-12-16 15:03:43 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1997-12-16 15:03:43 (GMT) |
commit | b5323999d261d3f864c9c7da78e3c88640ee411a (patch) | |
tree | fb69b3e281f360ca9975451d15d1bd8dbdca75aa | |
parent | 8e0799817e5db2215a5a22e24848776a2c915d0a (diff) | |
download | cpython-b5323999d261d3f864c9c7da78e3c88640ee411a.zip cpython-b5323999d261d3f864c9c7da78e3c88640ee411a.tar.gz cpython-b5323999d261d3f864c9c7da78e3c88640ee411a.tar.bz2 |
PhotoImage.put(): Fixed -to handling, including backward compatibility hack.
Guido, please take a look at this.
-rw-r--r-- | Lib/lib-tk/Tkinter.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 61cb07e..763ab0b 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -1770,7 +1770,9 @@ class PhotoImage(Image): def put(self, data, to=None): args = (self.name, 'put', data) if to: - args = args + to + if to[0] == '-to': + to = to[1:] + args = args + ('-to',) + tuple(to) apply(self.tk.call, args) # XXX read def write(self, filename, format=None, from_coords=None): |