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

Method __init__

Lib/tkinter/__init__.py:597–607  ·  view source on GitHub ↗

Construct an integer variable. MASTER can be given as master widget. VALUE is an optional value (defaults to 0) 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 retaine

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

Source from the content-addressed store, hash-verified

595 _default = 0
596
597 def __init__(self, master=None, value=None, name=None):
598 """Construct an integer variable.
599
600 MASTER can be given as master widget.
601 VALUE is an optional value (defaults to 0)
602 NAME is an optional Tcl name (defaults to PY_VARnum).
603
604 If NAME matches an existing variable and VALUE is omitted
605 then the existing value is retained.
606 """
607 Variable.__init__(self, master, value, name)
608
609 def get(self):
610 """Return the value of the variable as an integer."""

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected