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

Method _create

Lib/tkinter/__init__.py:3053–3063  ·  view source on GitHub ↗

Internal function.

(self, itemType, args, kw)

Source from the content-addressed store, hash-verified

3051 self.tk.call((self._w, 'coords') + args))]
3052
3053 def _create(self, itemType, args, kw): # Args: (val, val, ..., cnf={})
3054 """Internal function."""
3055 args = _flatten(args)
3056 cnf = args[-1]
3057 if isinstance(cnf, (dict, tuple)):
3058 args = args[:-1]
3059 else:
3060 cnf = {}
3061 return self.tk.getint(self.tk.call(
3062 self._w, 'create', itemType,
3063 *(args + self._options(cnf, kw))))
3064
3065 def create_arc(self, *args, **kw):
3066 """Create arc shaped region with coordinates x1,y1,x2,y2."""

Callers 9

create_arcMethod · 0.95
create_bitmapMethod · 0.95
create_imageMethod · 0.95
create_lineMethod · 0.95
create_ovalMethod · 0.95
create_polygonMethod · 0.95
create_rectangleMethod · 0.95
create_textMethod · 0.95
create_windowMethod · 0.95

Calls 4

_flattenFunction · 0.70
getintMethod · 0.45
callMethod · 0.45
_optionsMethod · 0.45

Tested by

no test coverage detected