You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Up till now we had some working code that did this:
maps = self.style.map('TCombobox')
if maps:
self.style.map('DateEntry', **maps)
Modifying a custom style to mimic the map of another. This has worked fine until Python 3.7, because the return value of .map is something that you can pass to .map as kw and it'll process it fine.
The return value of .map in Python 3.7 is something like this, for the TCombobox:
Which is as you'd expect (and the docs say): a dictionary of properties to lists, where each list can contain multiple tuples describing the required state and final value of the property.
However in Python 3.8, the value returned by .map is this:
The tuples are missing. This then causes a number of problems downstream, such as the final property values being split into the constituent letters instead of the values within each tuple.
This was likely caused by different versions of Tk.
It should be fixed now in bpo-42328. Style.map() should convert result to uniform representation on all versions and platforms, and accept input in different forms. Please check.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: