TSeparator

A themed divider — a thin horizontal or vertical line for visually separating sections of a layout. TSeparator is themed-only (it has no classic equivalent).

Example

app.TLabel({ text: 'Account' }).pack.configure({ anchor: 'w', padx: 12 });

const sep = app.TSeparator({ orient: 'horizontal' });
sep.pack.configure({ fill: 'x', padx: 12, pady: 8 });

app.TLabel({ text: 'Preferences' }).pack.configure({ anchor: 'w', padx: 12 });

Use fill: 'x' for a horizontal separator (or fill: 'y' for a vertical one) so it stretches across the available space.

Options

Option Type Description
orient string 'horizontal' (default) or 'vertical' (creation-time only).
style string A ttk style name.

Methods

TSeparator has no methods of its own; use the inherited widget methods (mainly layout). See Widget basics.

See also