MCPcopy Index your code
hub / github.com/python/cpython / put

Method put

Lib/tkinter/__init__.py:4536–4544  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 15

basic_queue_testMethod · 0.45
queue_join_testMethod · 0.45
test_shrinking_queueMethod · 0.45
test_shutdown_emptyMethod · 0.45
_write_msg_threadMethod · 0.45
_putMethod · 0.45
_shutdown_getMethod · 0.45

Calls 1

callMethod · 0.45

Tested by 15

basic_queue_testMethod · 0.36
queue_join_testMethod · 0.36
test_shrinking_queueMethod · 0.36
test_shutdown_emptyMethod · 0.36
_write_msg_threadMethod · 0.36
_putMethod · 0.36
_shutdown_getMethod · 0.36