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

Method __init__

Lib/tkinter/__init__.py:573–583  ·  view source on GitHub ↗

Construct a string variable. MASTER can be given as master widget. VALUE is an optional value (defaults to "") NAME is an optional Tcl name (defaults to PY_VARnum). If NAME matches an existing variable and VALUE is omitted then the existing value is retained

(self, master=None, value=None, name=None)

Source from the content-addressed store, hash-verified

571 _default = ""
572
573 def __init__(self, master=None, value=None, name=None):
574 """Construct a string variable.
575
576 MASTER can be given as master widget.
577 VALUE is an optional value (defaults to "")
578 NAME is an optional Tcl name (defaults to PY_VARnum).
579
580 If NAME matches an existing variable and VALUE is omitted
581 then the existing value is retained.
582 """
583 Variable.__init__(self, master, value, name)
584
585 def get(self):
586 """Return value of variable as string."""

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected