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

Method get

Lib/tkinter/__init__.py:585–590  ·  view source on GitHub ↗

Return value of variable as string.

(self)

Source from the content-addressed store, hash-verified

583 Variable.__init__(self, master, value, name)
584
585 def get(self):
586 """Return value of variable as string."""
587 value = self._tk.globalgetvar(self._name)
588 if isinstance(value, str):
589 return value
590 return str(value)
591
592
593class IntVar(Variable):

Callers 5

test_defaultMethod · 0.95
test_getMethod · 0.95
test_get_nullMethod · 0.95
test_widget_destroyMethod · 0.95
test_trace_variableMethod · 0.95

Calls 1

strFunction · 0.85

Tested by 5

test_defaultMethod · 0.76
test_getMethod · 0.76
test_get_nullMethod · 0.76
test_widget_destroyMethod · 0.76
test_trace_variableMethod · 0.76