(what=None)
| 321 | |
| 322 | |
| 323 | def _get_default_root(what=None): |
| 324 | if not _support_default_root: |
| 325 | raise RuntimeError("No master specified and tkinter is " |
| 326 | "configured to not support default root") |
| 327 | if _default_root is None: |
| 328 | if what: |
| 329 | raise RuntimeError(f"Too early to {what}: no default root window") |
| 330 | root = Tk() |
| 331 | assert _default_root is root |
| 332 | return _default_root |
| 333 | |
| 334 | |
| 335 | def _get_temp_root(): |
no test coverage detected
searching dependent graphs…