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

Method get

Lib/tkinter/__init__.py:3756–3762  ·  view source on GitHub ↗

Get the current value as integer or float.

(self)

Source from the content-addressed store, hash-verified

3754 Widget.__init__(self, master, 'scale', cnf, kw)
3755
3756 def get(self):
3757 """Get the current value as integer or float."""
3758 value = self.tk.call(self._w, 'get')
3759 try:
3760 return self.tk.getint(value)
3761 except (ValueError, TypeError, TclError):
3762 return self.tk.getdouble(value)
3763
3764 def set(self, value):
3765 """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