From: Fred Drake Date: Tue, 16 Dec 1997 15:03:43 +0000 (+0000) Subject: PhotoImage.put(): Fixed -to handling, including backward compatibility hack. X-Git-Tag: v1.5~135 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b5323999d261d3f864c9c7da78e3c88640ee411a;p=thirdparty%2FPython%2Fcpython.git PhotoImage.put(): Fixed -to handling, including backward compatibility hack. Guido, please take a look at this. --- diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 61cb07eb7aad..763ab0b78a20 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):