added text_font configuration for all CTk widgets #266

This commit is contained in:
Tom Schimansky
2022-08-16 14:05:15 +02:00
parent f39ee5764a
commit 8c9183006c
10 changed files with 43 additions and 72 deletions

View File

@@ -185,6 +185,10 @@ class CTkEntry(CTkBaseClass):
self.textvariable = kwargs.pop("textvariable")
self.entry.configure(textvariable=self.textvariable)
if "text_font" in kwargs:
self.text_font = kwargs.pop("text_font")
self.entry.configure(font=self.apply_font_scaling(self.text_font))
if "show" in kwargs:
if self.placeholder_text_active:
self.pre_placeholder_arguments["show"] = kwargs.pop("show")