mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
PhotoImage.put(): Fixed -to handling, including backward compatibility hack.
Guido, please take a look at this.
This commit is contained in:
parent
8e0799817e
commit
b5323999d2
1 changed files with 3 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue