MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / setup_master

Function setup_master

tools/python-3.11.9-amd64/Lib/tkinter/ttk.py:327–336  ·  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

325 return adict
326
327def setup_master(master=None):
328 """If master is not None, itself is returned. If master is None,
329 the default master is returned if there is one, otherwise a new
330 master is created and returned.
331
332 If it is not allowed to use the default root and master is None,
333 RuntimeError is raised."""
334 if master is None:
335 master = tkinter._get_default_root()
336 return master
337
338
339class Style(object):

Callers 2

__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected