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)
| 4411 | return self.tk.call(self.name, 'get', x, y) |
| 4412 | |
| 4413 | def put(self, data, to=None): |
| 4414 | """Put row formatted colors to image starting from |
| 4415 | position TO, e.g. image.put("{red green} {blue yellow}", to=(4,6))""" |
| 4416 | args = (self.name, 'put', data) |
| 4417 | if to: |
| 4418 | if to[0] == '-to': |
| 4419 | to = to[1:] |
| 4420 | args = args + ('-to',) + tuple(to) |
| 4421 | self.tk.call(args) |
| 4422 | |
| 4423 | def read(self, filename, format=None, *, from_coords=None, to=None, shrink=False): |
| 4424 | """Reads image data from the file named FILENAME into the image. |