mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
CTkButton improved
This commit is contained in:
parent
df05fa3a81
commit
365362fc0c
@ -249,6 +249,8 @@ class CTkButton(tkinter.Frame):
|
||||
self.text = text
|
||||
if self.text_label is not None:
|
||||
self.text_label.configure(text=self.text)
|
||||
else:
|
||||
sys.stderr.write("ERROR (CTkButton): Cant change text because button has no text.")
|
||||
|
||||
def change_image(self, image):
|
||||
if self.image_label is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user