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

Method get

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

Return the value of the variable as an integer.

(self)

Source from the content-addressed store, hash-verified

586 Variable.__init__(self, master, value, name)
587
588 def get(self):
589 """Return the value of the variable as an integer."""
590 value = self._tk.globalgetvar(self._name)
591 try:
592 return self._tk.getint(value)
593 except (TypeError, TclError):
594 return int(self._tk.getdouble(value))
595
596
597class 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