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

Function _get_default_root

Lib/tkinter/__init__.py:323–332  ·  view source on GitHub ↗
(what=None)

Source from the content-addressed store, hash-verified

321
322
323def _get_default_root(what=None):
324 if not _support_default_root:
325 raise RuntimeError("No master specified and tkinter is "
326 "configured to not support default root")
327 if _default_root is None:
328 if what:
329 raise RuntimeError(f"Too early to {what}: no default root window")
330 root = Tk()
331 assert _default_root is root
332 return _default_root
333
334
335def _get_temp_root():

Callers 7

__init__Method · 0.85
mainloopFunction · 0.85
getbooleanFunction · 0.85
_setupMethod · 0.85
__init__Method · 0.85
image_namesFunction · 0.85
image_typesFunction · 0.85

Calls 1

TkClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…