summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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):