CTkButton _ CustomTkinter
CTkButton _ CustomTkinter
Ads by EthicalAds
CTkButton
Available since version 0.3.0.
Example Code
def button_event():
print("button pressed")
Arguments
argument value
1 of 3 10/04/2025, 07:36
CTkButton | CustomTkinter https://customtkinter.tomschimansky.com/documentation...
argument value
text string
set image orientation if image and text are given ("top", "left",
compound
"bottom", "right")
2 of 3 10/04/2025, 07:36
CTkButton | CustomTkinter https://customtkinter.tomschimansky.com/documentation...
Methods
• .configure(attribute=value, ...)
button.configure(text="new text")
• .cget(attribute_name)
Pass attribute name as string and get current value of attribute, for example.
text = button.cget("text")
• .invoke()
3 of 3 10/04/2025, 07:36