brain_deer.presentation.qt.panel_auto_hide_pin

Unobtrusive corner control to pin individual panels (disable their auto hide).

Functions

style_panel_auto_hide_pin(→ None)

Apply a very subtle pin appearance (checked = this panel stays open).

install_panel_auto_hide_pin(→ PyQt5.QtWidgets.QToolButton)

Add a small corner pin button on host for one panel side.

Module Contents

brain_deer.presentation.qt.panel_auto_hide_pin.style_panel_auto_hide_pin(button: PyQt5.QtWidgets.QToolButton, *, panel: PanelSide, pinned: bool, dark: bool = True) → None

Apply a very subtle pin appearance (checked = this panel stays open).

brain_deer.presentation.qt.panel_auto_hide_pin.install_panel_auto_hide_pin(host: PyQt5.QtWidgets.QWidget, main_window: brain_deer.presentation.qt.main_window.MainWindow, *, panel: PanelSide, corner: Corner = 'top-right') → PyQt5.QtWidgets.QToolButton

Add a small corner pin button on host for one panel side.