mitk.mxn.layout.Split#

class mitk.mxn.layout.Split(orientation, children, size=1)#

Bases: object

An interior splitter dividing its area among children. Maps to QSplitter.

Parameters:
__init__(orientation, children, size=1)#
Parameters:
Return type:

None

Methods

__init__(orientation, children[, size])

find_window(id)

Return the leaf window with the given id, or None if no such window exists in this subtree.

horizontal(*children[, size])

Build a left-to-right split from a vararg of child nodes.

splits()

Pre-order iterator over the interior splits, including self.

vertical(*children[, size])

Build a top-to-bottom split from a vararg of child nodes.

window_ids()

Pre-order list of window ids (routing identities).

windows()

Pre-order iterator over the leaf windows.

Attributes

select_windows

Entry point for the fluent MxNWindowSelector filter and bulk-transform API rooted at this subtree.

size

orientation

children

__eq__(other)#

Return self==value.

children: tuple[Split | LayoutWindow, ...]#
find_window(id)#

Return the leaf window with the given id, or None if no such window exists in this subtree.

Return type:

LayoutWindow | None

Parameters:

id (str)

classmethod horizontal(*children, size=1)#

Build a left-to-right split from a vararg of child nodes.

Return type:

Split

Parameters:
orientation: Literal['horizontal', 'vertical']#
property select_windows: MxNWindowSelector[Split]#

Entry point for the fluent MxNWindowSelector filter and bulk-transform API rooted at this subtree.

size: int = 1#
splits()#

Pre-order iterator over the interior splits, including self.

Return type:

Iterator[Split]

classmethod vertical(*children, size=1)#

Build a top-to-bottom split from a vararg of child nodes.

Return type:

Split

Parameters:
window_ids()#

Pre-order list of window ids (routing identities).

Return type:

list[str]

windows()#

Pre-order iterator over the leaf windows.

Return type:

Iterator[LayoutWindow]