summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1997-12-16 15:03:43 (GMT)
committerFred Drake <fdrake@acm.org>1997-12-16 15:03:43 (GMT)
commitb5323999d261d3f864c9c7da78e3c88640ee411a (patch)
treefb69b3e281f360ca9975451d15d1bd8dbdca75aa /Lib
parent8e0799817e5db2215a5a22e24848776a2c915d0a (diff)
downloadcpython-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.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/lib-tk/Tkinter.py4
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):