MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / image_create

Method image_create

tools/python-3.11.9-amd64/Lib/tkinter/tix.py:395–405  ·  view source on GitHub ↗
(self, imgtype, cnf={}, master=None, **kw)

Source from the content-addressed store, hash-verified

393 self.tk.call(name, 'configure', '-' + option, value)
394 # These are missing from Tkinter
395 def image_create(self, imgtype, cnf={}, master=None, **kw):
396 if master is None:
397 master = self
398 if kw and cnf: cnf = _cnfmerge((cnf, kw))
399 elif kw: cnf = kw
400 options = ()
401 for k, v in cnf.items():
402 if callable(v):
403 v = self._register(v)
404 options = options + ('-'+k, v)
405 return master.tk.call(('image', 'create', imgtype,) + options)
406 def image_delete(self, imgname):
407 try:
408 self.tk.call('image', 'delete', imgname)

Callers

nothing calls this directly

Calls 5

_cnfmergeFunction · 0.90
callMethod · 0.80
callableFunction · 0.50
itemsMethod · 0.45
_registerMethod · 0.45

Tested by

no test coverage detected