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

Method get

Lib/tkinter/__init__.py:609–615  ·  view source on GitHub ↗

Return the value of the variable as an integer.

(self)

Source from the content-addressed store, hash-verified

607 Variable.__init__(self, master, value, name)
608
609 def get(self):
610 """Return the value of the variable as an integer."""
611 value = self._tk.globalgetvar(self._name)
612 try:
613 return self._tk.getint(value)
614 except (TypeError, TclError):
615 return int(self._tk.getdouble(value))
616
617
618class DoubleVar(Variable):

Callers 6

test_same_nameMethod · 0.95
test_defaultMethod · 0.95
test_getMethod · 0.95
test_invalid_valueMethod · 0.95
test_configure_invokeMethod · 0.95
test_widget_destroyMethod · 0.95

Calls 2

getdoubleMethod · 0.80
getintMethod · 0.45

Tested by 6

test_same_nameMethod · 0.76
test_defaultMethod · 0.76
test_getMethod · 0.76
test_invalid_valueMethod · 0.76
test_configure_invokeMethod · 0.76
test_widget_destroyMethod · 0.76