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

Method get

Lib/tkinter/__init__.py:661–666  ·  view source on GitHub ↗

Return the value of the variable as a bool.

(self)

Source from the content-addressed store, hash-verified

659 initialize = set
660
661 def get(self):
662 """Return the value of the variable as a bool."""
663 try:
664 return self._tk.getboolean(self._tk.globalgetvar(self._name))
665 except TclError:
666 raise ValueError("invalid literal for getboolean()")
667
668
669def 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