From b5323999d261d3f864c9c7da78e3c88640ee411a Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Tue, 16 Dec 1997 15:03:43 +0000 Subject: PhotoImage.put(): Fixed -to handling, including backward compatibility hack. Guido, please take a look at this. --- Lib/lib-tk/Tkinter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): -- cgit v0.12