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

Function NoDefaultRoot

Lib/tkinter/__init__.py:309–320  ·  view source on GitHub ↗

Inhibit setting of default root window. Call this function to inhibit that the first instance of Tk is used for windows without an explicit parent window.

()

Source from the content-addressed store, hash-verified

307
308
309def NoDefaultRoot():
310 """Inhibit setting of default root window.
311
312 Call this function to inhibit that the first instance of
313 Tk is used for windows without an explicit parent window.
314 """
315 global _support_default_root, _default_root
316 _support_default_root = False
317 # Delete, so any use of _default_root will immediately raise an exception.
318 # Rebind before deletion, so repeated calls will not fail.
319 _default_root = None
320 del _default_root
321
322
323def _get_default_root(what=None):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…