mitk.mxn.layout.Split#
- class mitk.mxn.layout.Split(orientation, children, size=1)#
Bases:
objectAn interior splitter dividing its area among children. Maps to QSplitter.
- Parameters:
orientation (Literal['horizontal', 'vertical'])
children (tuple[Split | LayoutWindow, ...])
size (int)
- __init__(orientation, children, size=1)#
- Parameters:
orientation (Literal['horizontal', 'vertical'])
children (tuple[Split | LayoutWindow, ...])
size (int)
- Return type:
None
Methods
__init__(orientation, children[, size])find_window(id)Return the leaf window with the given id, or
Noneif 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.
Pre-order list of window ids (routing identities).
windows()Pre-order iterator over the leaf windows.
Attributes
Entry point for the fluent
MxNWindowSelectorfilter and bulk-transform API rooted at this subtree.- __eq__(other)#
Return self==value.
- children: tuple[Split | LayoutWindow, ...]#
- find_window(id)#
Return the leaf window with the given id, or
Noneif no such window exists in this subtree.- Return type:
- Parameters:
id (str)
- classmethod horizontal(*children, size=1)#
Build a left-to-right split from a vararg of child nodes.
- Return type:
- Parameters:
children (Split | LayoutWindow)
size (int)
- property select_windows: MxNWindowSelector[Split]#
Entry point for the fluent
MxNWindowSelectorfilter and bulk-transform API rooted at this subtree.
- classmethod vertical(*children, size=1)#
Build a top-to-bottom split from a vararg of child nodes.
- Return type:
- Parameters:
children (Split | LayoutWindow)
size (int)
- windows()#
Pre-order iterator over the leaf windows.
- Return type: