bec_widgets.utils.round_frame#

Classes#

ExampleApp

RoundedFrame

A custom QFrame with rounded corners and optional theme updates.

Module Contents#

class ExampleApp#

Bases: qtpy.QtWidgets.QWidget

class RoundedFrame(parent=None, content_widget: qtpy.QtWidgets.QWidget = None, background_color: str = None, orientation: str = 'horizontal', radius: int = 10)#

Bases: qtpy.QtWidgets.QFrame

A custom QFrame with rounded corners and optional theme updates. The frame can contain any QWidget, however it is mainly designed to wrap PlotWidgets to provide a consistent look and feel with other BEC Widgets.

apply_plot_widget_style(border: str = 'none')#

Let QSS/pyqtgraph handle plot styling; avoid overriding here.

apply_theme(theme: str)#

Deprecated: RoundedFrame no longer handles theme; styling is QSS-driven.

radius()#

Radius of the rounded corners.

update_style()#

Update the style of the frame based on the background color.

background_color = None#
content_widget = None#