-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
bpo-42328: Fix tkinter.ttk.Style.map(). #23300
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
bpo-42328: Fix tkinter.ttk.Style.map(). #23300
Conversation
It accepts now the default state as returned by Style.map().
b86968f
to
683a7a9
Compare
|
||
# Single state | ||
for states in ['active'], [('active',)]: | ||
style.map('TButton', background=[('active', 'white')]) |
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 loop variable states
is not used in the loop, making it irrelevant. By analogy with the next 2 loops, did you mean
style.map('TButton', background=[('active', 'white')]) | |
style.map('TButton', background=[(*states, 'white')]) |
?
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? |
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9. |
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 <storchaka@gmail.com>
GH-23470 is a backport of this pull request to the 3.9 branch. |
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 <storchaka@gmail.com>
GH-23471 is a backport of this pull request to the 3.8 branch. |
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 <storchaka@gmail.com>
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 <storchaka@gmail.com>
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.
It accepts now the default state as returned by Style.map().
https://bugs.python.org/issue42328