Dockable Layout API

Dockable three-pane window implementation.

This module provides a dockable three-pane window layout with detachable left and right frames for flexible UI arrangements.

class threepanewindows.dockable.DockableThreePaneWindow(master=None, side_width=150, left_builder=None, center_builder=None, right_builder=None, left_fixed_width=None, right_fixed_width=None, menu_bar=None, **kwargs)[source]

Bases: Frame

A dockable three-pane window with detachable left and right frames.

Usage:
window = DockableThreePaneWindow(parent, left_builder=…,

center_builder=…, right_builder=…)

Initialize dockable three-pane window with configuration options.

clear_left_fixed_width()[source]

Remove fixed width constraint from left pane.

clear_right_fixed_width()[source]

Remove fixed width constraint from right pane.

get_center_frame()[source]

Get the center frame widget.

get_left_frame()[source]

Get the left frame widget.

get_right_frame()[source]

Get the right frame widget.

is_left_fixed()[source]

Check if left pane has fixed width.

Return type:

bool

is_right_fixed()[source]

Check if right pane has fixed width.

Return type:

bool

set_left_fixed_width(width)[source]

Set the left pane to a fixed width.

Parameters:

width (int)

set_right_fixed_width(width)[source]

Set the right pane to a fixed width.

Parameters:

width (int)

DockableThreePaneWindow

class threepanewindows.DockableThreePaneWindow(master=None, side_width=150, left_builder=None, center_builder=None, right_builder=None, left_fixed_width=None, right_fixed_width=None, menu_bar=None, **kwargs)[source]

Bases: Frame

A dockable three-pane window with detachable left and right frames.

Usage:
window = DockableThreePaneWindow(parent, left_builder=…,

center_builder=…, right_builder=…)

Initialize dockable three-pane window with configuration options.

clear_left_fixed_width()[source]

Remove fixed width constraint from left pane.

clear_right_fixed_width()[source]

Remove fixed width constraint from right pane.

get_center_frame()[source]

Get the center frame widget.

get_left_frame()[source]

Get the left frame widget.

get_right_frame()[source]

Get the right frame widget.

is_left_fixed()[source]

Check if left pane has fixed width.

Return type:

bool

is_right_fixed()[source]

Check if right pane has fixed width.

Return type:

bool

set_left_fixed_width(width)[source]

Set the left pane to a fixed width.

Parameters:

width (int)

set_right_fixed_width(width)[source]

Set the right pane to a fixed width.

Parameters:

width (int)