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

Method __init__

Lib/tkinter/__init__.py:622–632  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

620 _default = 0.0
621
622 def __init__(self, master=None, value=None, name=None):
623 """Construct a float variable.
624
625 MASTER can be given as master widget.
626 VALUE is an optional value (defaults to 0.0)
627 NAME is an optional Tcl name (defaults to PY_VARnum).
628
629 If NAME matches an existing variable and VALUE is omitted
630 then the existing value is retained.
631 """
632 Variable.__init__(self, master, value, name)
633
634 def get(self):
635 """Return the value of the variable as a float."""

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected