mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
added text_font configuration for all CTk widgets #266
This commit is contained in:
@@ -243,6 +243,11 @@ class CTkButton(CTkBaseClass):
|
||||
else:
|
||||
self.text_label.configure(text=self.text)
|
||||
|
||||
if "text_font" in kwargs:
|
||||
self.text_font = kwargs.pop("text_font")
|
||||
if self.text_label is not None:
|
||||
self.text_label.configure(font=self.apply_font_scaling(self.text_font))
|
||||
|
||||
if "state" in kwargs:
|
||||
self.state = kwargs.pop("state")
|
||||
self.set_cursor()
|
||||
|
||||
Reference in New Issue
Block a user