Skip to content

[3.9] bpo-42630: Improve error reporting in Tkinter for absent default root (GH-23781)#23853

Merged
serhiy-storchaka merged 1 commit intopython:3.9from
serhiy-storchaka:backport-3d569fd-3.9
Dec 19, 2020
Merged

[3.9] bpo-42630: Improve error reporting in Tkinter for absent default root (GH-23781)#23853
serhiy-storchaka merged 1 commit intopython:3.9from
serhiy-storchaka:backport-3d569fd-3.9

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Dec 19, 2020

  • Tkinter functions and constructors which need a default root window
    raise now RuntimeError with descriptive message instead of obscure
    AttributeError or NameError if it is not created yet or cannot
    be created automatically.

  • Add tests for all functions which use default root window.

  • Fix import in the pynche script..
    (cherry picked from commit 3d569fd)

https://bugs.python.org/issue42630

…t root (pythonGH-23781)

* Tkinter functions and constructors which need a default root window
  raise now RuntimeError with descriptive message instead of obscure
  AttributeError or NameError if it is not created yet or cannot
  be created automatically.

* Add tests for all functions which use default root window.

* Fix import in the pynche script..
(cherry picked from commit 3d569fd)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@miss-islington
Copy link
Contributor

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.8 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 87e7a14ee3bd7dc495e51166598453114342d0bf 3.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants