PhotoImage.put(): Fixed -to handling, including backward compatibility hack.

Guido, please take a look at this.
This commit is contained in:
Fred Drake 1997-12-16 15:03:43 +00:00
parent 8e0799817e
commit b5323999d2

View file

@ -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):