Skip to content

popout

Reusable pop-out helper for floating a widget into a separate window.

Classes:

  • PopOutManager

    Moves a widget from a QSplitter into a floating window and back.

PopOutManager

PopOutManager(
    widget: QWidget, splitter: QSplitter, title: str
)

Bases: QObject

Moves a widget from a QSplitter into a floating window and back.

Usage

self._popout = PopOutManager(self.plot_panel, self.splitter, title="...") pop_action.triggered.connect(self._popout.toggle) self._popout.popped_out.connect(self.some_toolbar.setVisible)

Methods:

  • toggle

    Float the widget if embedded, or raise the existing window if already floating.

toggle

toggle() -> None

Float the widget if embedded, or raise the existing window if already floating.