-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
bpo-33987: ttk frame inside search dialog toplevel #22942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code changes are correct pending a deeper refactoring.
I have made the needed changes to the tests and will push commits that include a blurb.
@@ -76,7 +76,7 @@ def test_create_widgets(self): | |||
def test_make_entry(self): | |||
equal = self.assertEqual | |||
self.dialog.row = 0 | |||
self.dialog.top = self.root | |||
self.dialog.top = self.dialog.frame = self.root |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The correct fix to make the tests pass after inserting the Frame is self.dialog.frame = Frame(self.root)
. The new frame isolates all other widgets from the top level, and this isolation is a reason for inserting the frame independent of the appearance change on some systems, and should be part of the test. (Indeed, self.dialog.top does not exist during the tests being modified.)
This time an Azure Pipelines Ubuntu ttk Combobox timeout |
Thanks @roseman for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8. |
Thanks @roseman for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9. |
(cherry picked from commit 5df6c99) Co-authored-by: Mark Roseman <[email protected]>
GH-22956 is a backport of this pull request to the 3.8 branch. |
(cherry picked from commit 5df6c99) Co-authored-by: Mark Roseman <[email protected]>
GH-22957 is a backport of this pull request to the 3.9 branch. |
(cherry picked from commit 5df6c99) Co-authored-by: Mark Roseman <[email protected]>
(cherry picked from commit 5df6c99) Co-authored-by: Mark Roseman <[email protected]>
https://bugs.python.org/issue33987