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

Function setup_master

Lib/tkinter/ttk.py:334–343  ·  view source on GitHub ↗

If master is not None, itself is returned. If master is None, the default master is returned if there is one, otherwise a new master is created and returned. If it is not allowed to use the default root and master is None, RuntimeError is raised.

(master=None)

Source from the content-addressed store, hash-verified

332 return adict
333
334def setup_master(master=None):
335 """If master is not None, itself is returned. If master is None,
336 the default master is returned if there is one, otherwise a new
337 master is created and returned.
338
339 If it is not allowed to use the default root and master is None,
340 RuntimeError is raised."""
341 if master is None:
342 master = tkinter._get_default_root()
343 return master
344
345
346class Style(object):

Callers 2

__init__Method · 0.85
__init__Method · 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…