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

Can you change the font in a CTkTextBox with tags? #2360

Open
PhilipNelson5 opened this issue Apr 7, 2024 · 0 comments
Open

Can you change the font in a CTkTextBox with tags? #2360

PhilipNelson5 opened this issue Apr 7, 2024 · 0 comments

Comments

@PhilipNelson5
Copy link

Based on the code in CTkTextBox, it seems impossible to configure portions of text in a CTkTextBox with tags. Is this correct or am I missing another way to do it?

def tag_config(self, tagName, **kwargs):
if "font" in kwargs:
raise AttributeError("'font' option forbidden, because would be incompatible with scaling")
return self._textbox.tag_config(tagName, **kwargs)

I want to make tags that change the font to italic and bold.

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

No branches or pull requests

1 participant