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

Method __init__

Lib/tkinter/__init__.py:643–653  ·  view source on GitHub ↗

Construct a boolean variable. MASTER can be given as master widget. VALUE is an optional value (defaults to False) 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 reta

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

Source from the content-addressed store, hash-verified

641 _default = False
642
643 def __init__(self, master=None, value=None, name=None):
644 """Construct a boolean variable.
645
646 MASTER can be given as master widget.
647 VALUE is an optional value (defaults to False)
648 NAME is an optional Tcl name (defaults to PY_VARnum).
649
650 If NAME matches an existing variable and VALUE is omitted
651 then the existing value is retained.
652 """
653 Variable.__init__(self, master, value, name)
654
655 def set(self, value):
656 """Set the variable to VALUE."""

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected