8.5.8.2.14. pymodaq_gui.utils.widgets.window module

pymodaq_gui.utils.widgets.window.make_window(area=None, win=None, title='Module', flags=<WindowType.Window|WindowTitleHint|WindowMinimizeButtonHint|WindowMaximizeButtonHint: 53249>)[source]

Create and configure a QMainWindow with a DockArea as its central widget.

Parameters:
  • area (DockArea | None | bool) – DockArea widget to use as central widget. Defaults to a new DockArea instance except if area is False

  • win (QMainWindow) – Main window object to configure. Defaults to a new QMainWindow instance.

  • title (str) – Window title text. Defaults to “Module”.

  • flags (WindowType | None) – Combined window flags that control window behavior and appearance. Defaults to a standard window with title bar and min/max buttons.

Returns:

(win, area) - The configured QMainWindow and DockArea objects.

Return type:

tuple[QMainWindow, DockArea]