Put row formatted colors to image starting from position TO, e.g. image.put("{red green} {blue yellow}", to=(4,6))
(self, data, to=None)
| 4534 | return self.tk.call(self.name, 'get', x, y) |
| 4535 | |
| 4536 | def put(self, data, to=None): |
| 4537 | """Put row formatted colors to image starting from |
| 4538 | position TO, e.g. image.put("{red green} {blue yellow}", to=(4,6))""" |
| 4539 | args = (self.name, 'put', data) |
| 4540 | if to: |
| 4541 | if to[0] == '-to': |
| 4542 | to = to[1:] |
| 4543 | args = args + ('-to',) + tuple(to) |
| 4544 | self.tk.call(args) |
| 4545 | |
| 4546 | def read(self, filename, format=None, *, from_coords=None, to=None, shrink=False): |
| 4547 | """Reads image data from the file named FILENAME into the image. |