MainWindow#

Available in backends: qt
Signals#
changed(object)- Emitted withselfwhen any sub-widget in the container changes.label_changed(str)- Emitted when the widget label changes.native_parent_changed(object)- Emitted with the backend widget when the widget parent changes.
MainWindow
#
Bases: MainWindowWidget
A Widget to contain other widgets, includes a menu bar.
Parameters:
-
widgets(Sequence[Widget], default:()) –A sequence of widgets with which to initialize the container, by default
None. -
layout(str, default:'vertical') –The layout for the container. must be one of
{'horizontal', 'vertical'}. by default "vertical" -
scrollable(bool, default:False) –Whether to enable scroll bars or not. If enabled, scroll bars will only appear along the layout direction, not in both directions.
-
labels(bool, default:True) –Whether each widget should be shown with a corresponding Label widget to the left, by default
True. Note: the text for each widget defaults towidget.name, but can be overridden by settingwidget.label. -
**base_widget_kwargs(Any, default:{}) –All additional keyword arguments are passed to the base
magicgui.widgets.Widgetconstructor.