Skip to content

CTk Switch

Lasha Kandelaki edited this page May 7, 2026 · 2 revisions

CTkSwitch

Sliding on/off toggle with a label.

Wraps customtkinter.CTkSwitch.

Properties

Groups appear in the panel in Content → Layout → Visual → Behavior order.

Group Properties
Text text, font, text_color
Geometry x, y, width, height
Toggle switch_width, switch_height, corner_radius, button length
Main Colors fg_color (off), progress_color (on), button_color, button_hover_color
Button Interaction state, hover effect, initial on, variable, onvalue, offvalue

Exact set comes from the descriptor in app/widgets/ctk_switch.py.


See alsoWidgets · CTkCheckBox · CustomTkinter docs

Clone this wiki locally