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

Method get

Lib/tkinter/__init__.py:3674–3680  ·  view source on GitHub ↗

Get the current value as integer or float.

(self)

Source from the content-addressed store, hash-verified

3672 Widget.__init__(self, master, 'scale', cnf, kw)
3673
3674 def get(self):
3675 """Get the current value as integer or float."""
3676 value = self.tk.call(self._w, 'get')
3677 try:
3678 return self.tk.getint(value)
3679 except (ValueError, TypeError, TclError):
3680 return self.tk.getdouble(value)
3681
3682 def set(self, value):
3683 """Set the value to VALUE."""

Callers

nothing calls this directly

Calls 3

getdoubleMethod · 0.80
callMethod · 0.45
getintMethod · 0.45

Tested by

no test coverage detected