(what=None)
| 315 | |
| 316 | |
| 317 | def _get_default_root(what=None): |
| 318 | if not _support_default_root: |
| 319 | raise RuntimeError("No master specified and tkinter is " |
| 320 | "configured to not support default root") |
| 321 | if _default_root is None: |
| 322 | if what: |
| 323 | raise RuntimeError(f"Too early to {what}: no default root window") |
| 324 | root = Tk() |
| 325 | assert _default_root is root |
| 326 | return _default_root |
| 327 | |
| 328 | |
| 329 | def _get_temp_root(): |
no test coverage detected