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

Function _get_temp_root

Lib/tkinter/__init__.py:335–349  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

333
334
335def _get_temp_root():
336 global _support_default_root
337 if not _support_default_root:
338 raise RuntimeError("No master specified and tkinter is "
339 "configured to not support default root")
340 root = _default_root
341 if root is None:
342 assert _support_default_root
343 _support_default_root = False
344 root = Tk()
345 _support_default_root = True
346 assert _default_root is None
347 root.withdraw()
348 root._temporary = True
349 return root
350
351
352def _destroy_temp_root(master):

Callers 2

__init__Method · 0.90
showMethod · 0.90

Calls 1

TkClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…