bec_widgets.widgets.plots.setting_menus.axis_settings#
Classes#
Abstract class for a settings widget to enforce the implementation of the accept_changes and display_current_settings. |
Module Contents#
- class AxisSettings(parent=None, target_widget=None, popup=False, *args, **kwargs)#
Bases:
bec_widgets.utils.settings_dialog.SettingWidgetAbstract class for a settings widget to enforce the implementation of the accept_changes and display_current_settings. Can be used for toolbar actions to display the settings of a widget.
- Parameters:
target_widget (QWidget) – The widget that the settings will be taken from and applied to.
- accept_changes()#
Apply all properties from the settings widget to the target widget.
- connect_all_signals()#
- fetch_all_properties()#
Fetch all properties from the target widget and update the settings widget.
- set_property(widget: qtpy.QtWidgets.QWidget, value)#
Set property of the target widget based on the widget that emitted the signal. The name of the property has to be the same as the objectName of the widget and compatible with WidgetIO.
- Parameters:
widget (QWidget) – The widget that emitted the signal.
value() – The value to set the property to.
- update_property(property_name: str, value)#
Update the value of the widget based on the property name and value. The name of the property has to be the same as the objectName of the widget and compatible with WidgetIO.
- Parameters:
property_name (str) – The name of the property to update.
value – The value to set the property to.
- layout#
- popup = False#
- scroll_area#
- target_widget = None#
- ui#