Skip to content

Conversation

@Akuli
Copy link
Collaborator

@Akuli Akuli commented Aug 20, 2020

In #4363 , widgets got somewhat strictly typed config, configure and cget methods and less strictly typed __getitem__ and __setitem__. This PR makes tkinter.font.Font behave similarly to make this code work:

https://github.com/Akuli/porcupine/blob/235eb78cc6ca1d6a051726746531b43642fa6c40/porcupine/plugins/highlight.py#L122-L124

Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not terribly happy about this change, but I understand the rationale.

@srittau srittau merged commit 39ddef2 into python:master Aug 24, 2020
@Akuli Akuli deleted the tkinter-font-consistency branch August 24, 2020 11:34
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.

2 participants