Skip to content
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

make tkinter.font.Font behave similarly to tkinter widgets #4469

Merged
merged 4 commits into from
Aug 24, 2020

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