MCPcopy Index your code
hub / github.com/RustPython/RustPython / _get_default_root

Function _get_default_root

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

Source from the content-addressed store, hash-verified

315
316
317def _get_default_root(what=None):
318 if not _support_default_root:
319 raise RuntimeError("No master specified and tkinter is "
320 "configured to not support default root")
321 if _default_root is None:
322 if what:
323 raise RuntimeError(f"Too early to {what}: no default root window")
324 root = Tk()
325 assert _default_root is root
326 return _default_root
327
328
329def _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