bec_widgets.utils.widget_highlighter#
Classes#
Utility that highlights widgets by drawing a temporary frame around them. |
Module Contents#
- class WidgetHighlighter(*, frame_parent: qtpy.QtWidgets.QWidget | None = None, window_flags: qtpy.QtCore.Qt.WindowType | qtpy.QtCore.Qt.WindowFlags = Qt.WindowType.Tool | Qt.WindowType.FramelessWindowHint | Qt.WindowType.WindowStaysOnTopHint, style_sheet: str = 'border: 2px solid #FF00FF; border-radius: 6px; background: transparent;')#
Utility that highlights widgets by drawing a temporary frame around them.
- _ensure_frame() qtpy.QtWidgets.QFrame#
- cleanup() None#
Delete the highlight frame and cancel pending animations.
- highlight(widget: qtpy.QtWidgets.QWidget | None) None#
Highlight the given widget with a pulsing frame.
- property frame: qtpy.QtWidgets.QFrame | None#
Return the currently allocated highlight frame (if any).