MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / get

Method get

tools/python-3.11.9-amd64/Lib/tkinter/__init__.py:3545–3551  ·  view source on GitHub ↗

Get the current value as integer or float.

(self)

Source from the content-addressed store, hash-verified

3543 Widget.__init__(self, master, 'scale', cnf, kw)
3544
3545 def get(self):
3546 """Get the current value as integer or float."""
3547 value = self.tk.call(self._w, 'get')
3548 try:
3549 return self.tk.getint(value)
3550 except (ValueError, TypeError, TclError):
3551 return self.tk.getdouble(value)
3552
3553 def set(self, value):
3554 """Set the value to VALUE."""

Callers

nothing calls this directly

Calls 3

callMethod · 0.80
getdoubleMethod · 0.80
getintMethod · 0.45

Tested by

no test coverage detected