bec_widgets.utils.compact_popup =============================== .. py:module:: bec_widgets.utils.compact_popup Classes ------- .. autoapisummary:: bec_widgets.utils.compact_popup.CompactPopupWidget bec_widgets.utils.compact_popup.LedLabel bec_widgets.utils.compact_popup.PopupDialog Module Contents --------------- .. py:class:: CompactPopupWidget(parent=None, layout=QVBoxLayout) Bases: :py:obj:`qtpy.QtWidgets.QWidget` Container widget, that can display its content or have a compact form, in this case clicking on a small button pops the contained widget up. In the compact form, a LED-like indicator shows a status indicator. .. py:method:: addWidget(widget) Add a widget to the popup container The popup container corresponds to the "full view" (not compact) The widget is reparented to the container, and added to the container layout .. py:method:: compact_view() .. py:method:: expand_popup() .. py:method:: label() .. py:method:: setSizePolicy(size_policy1, size_policy2=None) .. py:method:: set_global_state(state: str) Set the LED-indicator state The LED indicator represents the 'global' state. State can be one of the following: "default", "success", "warning", "emergency" .. py:method:: show_popup() Display the contained widgets in a popup dialog .. py:method:: tooltip() .. py:attribute:: compact_label .. py:attribute:: compact_show_popup .. py:attribute:: compact_status .. py:attribute:: compact_view_widget .. py:attribute:: container .. py:attribute:: expand .. py:attribute:: layout .. py:class:: LedLabel(parent=None) Bases: :py:obj:`qtpy.QtWidgets.QLabel` .. py:method:: setState(state: str) .. py:attribute:: default_led :value: 'color: white;border-radius: 10;background-color: qlineargradient(spread:pad, x1:0.04,... .. py:attribute:: emergency_led :value: 'color: white;border-radius: 10;background-color: qlineargradient(spread:pad, x1:0.145, y1:0.16,... .. py:attribute:: palette .. py:attribute:: success_led :value: 'color: white;border-radius: 10;background-color: qlineargradient(spread:pad, x1:0.145, y1:0.16,... .. py:attribute:: warning_led :value: 'color: white;border-radius: 10;background-color: qlineargradient(spread:pad, x1:0.232,... .. py:class:: PopupDialog(content_widget) Bases: :py:obj:`qtpy.QtWidgets.QDialog` .. py:method:: closeEvent(event) .. py:attribute:: content_widget .. py:attribute:: parent