MCPcopy Index your code
hub / github.com/RustPython/RustPython / get

Method get

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

Return the value of the variable as an integer.

(self)

Source from the content-addressed store, hash-verified

589 Variable.__init__(self, master, value, name)
590
591 def get(self):
592 """Return the value of the variable as an integer."""
593 value = self._tk.globalgetvar(self._name)
594 try:
595 return self._tk.getint(value)
596 except (TypeError, TclError):
597 return int(self._tk.getdouble(value))
598
599
600class DoubleVar(Variable):

Callers

nothing calls this directly

Calls 3

globalgetvarMethod · 0.80
getdoubleMethod · 0.80
getintMethod · 0.45

Tested by

no test coverage detected