Skip to content

CTk Textbox

Lasha Kandelaki edited this page May 17, 2026 · 3 revisions

CTkTextbox

Multi-line text box with optional scrollbar.

Wraps customtkinter.CTkTextbox.

Properties

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

Group Properties
Content initial text, rich_text (Parse Rich-Text Tags toggle), scrollbar toggle
Text font, wrap (none / char / word), text_color
Geometry x, y, width, height
Rectangle corner_radius, border_width, border_color, inner padding
Main Colors fg_color, scrollbar_button_color, scrollbar_button_hover_color
Button Interaction state (normal / readonly / disabled)

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

Rich-text mode

Flip Parse Rich-Text Tags on (Content group) to render the initial text through the same Unity-style parser used by CTkRichLabel<b>, <i>, <u>, <color=…>, <bg=…>, <size=N>, <noparse>. Default is off so existing textboxes containing literal < characters (if x < 3, HTML snippets, code) keep rendering unchanged.

When on, the exporter emits self.<var>.set_rich_text(<initial_text>) after construction. See CTkRichLabel for the full tag reference and the Edit Rich Text toolbar (the same B / I / U / size / color / bg buttons appear here too).


See alsoWidgets · CTkEntry · CTkRichLabel · CustomTkinter docs

Clone this wiki locally