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

Allow any number of trailing font options in tkinter font description #13240

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

brianschubert
Copy link
Contributor

Fixes #13226

It seems any number of trailing options is accepted:

import tkinter as tk

l = tk.Label()
l.pack()

l.configure(  # renders OK
    text="foo",
    font=("arial", 12, "normal", "italic", "underline", "overstrike", "roman", "italic", "normal", "bold"),
    width=10,
)

>>> l.cget("font")
'arial 12 normal italic underline overstrike roman italic normal bold'

Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@JelleZijlstra JelleZijlstra requested a review from Akuli December 13, 2024 19:06
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.

_FontDescription in tkinter.font is missing some tuple alternatives
1 participant