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

Function _get_temp_root

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

Source from the content-addressed store, hash-verified

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

Callers 2

__init__Method · 0.90
showMethod · 0.90

Calls 1

TkClass · 0.85

Tested by

no test coverage detected