-
-
Notifications
You must be signed in to change notification settings - Fork 0
CTk Textbox
Multi-line text box with optional scrollbar.
Wraps customtkinter.CTkTextbox.
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.
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 also — Widgets · CTkEntry · CTkRichLabel · CustomTkinter docs