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

Method get

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

Return the value of the variable as a bool.

(self)

Source from the content-addressed store, hash-verified

638 initialize = set
639
640 def get(self):
641 """Return the value of the variable as a bool."""
642 try:
643 return self._tk.getboolean(self._tk.globalgetvar(self._name))
644 except TclError:
645 raise ValueError("invalid literal for getboolean()")
646
647
648def mainloop(n=0):

Callers 3

test_defaultMethod · 0.95
test_getMethod · 0.95

Calls 1

getbooleanMethod · 0.45

Tested by 3

test_defaultMethod · 0.76
test_getMethod · 0.76