bpo-42328: Fix tkinter.ttk.Style.map().#23300
Merged
serhiy-storchaka merged 4 commits intopython:masterfrom Nov 22, 2020
Merged
bpo-42328: Fix tkinter.ttk.Style.map().#23300serhiy-storchaka merged 4 commits intopython:masterfrom
serhiy-storchaka merged 4 commits intopython:masterfrom
Conversation
It accepts now the default state as returned by Style.map().
b86968f to
683a7a9
Compare
terryjreedy
reviewed
Nov 15, 2020
|
|
||
| # Single state | ||
| for states in ['active'], [('active',)]: | ||
| style.map('TButton', background=[('active', 'white')]) |
Member
There was a problem hiding this comment.
The loop variable states is not used in the loop, making it irrelevant. By analogy with the next 2 loops, did you mean
Suggested change
| style.map('TButton', background=[('active', 'white')]) | |
| style.map('TButton', background=[(*states, 'white')]) |
?
Member
|
The GH Windows failure test logs are not available. The Pipelines logs are and same on win32 and win64 |
|
Works for me on Windows now. ttk tests passed and cloning a map with default state works. I assume we want to withdraw my pull-request then? |
Contributor
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9. |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Nov 22, 2020
The function accepts now the representation of the default state as empty sequence (as returned by Style.map()). The structure of the result is now the same on all platform and does not depend on the value of wantobjects. (cherry picked from commit dd844a2) Co-authored-by: Serhiy Storchaka <[email protected]>
|
GH-23470 is a backport of this pull request to the 3.9 branch. |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Nov 22, 2020
The function accepts now the representation of the default state as empty sequence (as returned by Style.map()). The structure of the result is now the same on all platform and does not depend on the value of wantobjects. (cherry picked from commit dd844a2) Co-authored-by: Serhiy Storchaka <[email protected]>
|
GH-23471 is a backport of this pull request to the 3.8 branch. |
miss-islington
added a commit
that referenced
this pull request
Nov 23, 2020
The function accepts now the representation of the default state as empty sequence (as returned by Style.map()). The structure of the result is now the same on all platform and does not depend on the value of wantobjects. (cherry picked from commit dd844a2) Co-authored-by: Serhiy Storchaka <[email protected]>
miss-islington
added a commit
that referenced
this pull request
Nov 23, 2020
The function accepts now the representation of the default state as empty sequence (as returned by Style.map()). The structure of the result is now the same on all platform and does not depend on the value of wantobjects. (cherry picked from commit dd844a2) Co-authored-by: Serhiy Storchaka <[email protected]>
adorilson
pushed a commit
to adorilson/cpython
that referenced
this pull request
Mar 13, 2021
The function accepts now the representation of the default state as empty sequence (as returned by Style.map()). The structure of the result is now the same on all platform and does not depend on the value of wantobjects.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It accepts now the default state as returned by Style.map().
https://bugs.python.org/issue42328