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.
()
| 307 | |
| 308 | |
| 309 | def 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 | |
| 323 | def _get_default_root(what=None): |
no outgoing calls
no test coverage detected
searching dependent graphs…