bec_widgets.utils.compact_popup#
Classes#
Container widget, that can display its content or have a compact form, |
|
Module Contents#
- class CompactPopupWidget(parent=None, layout=QVBoxLayout)#
Bases:
qtpy.QtWidgets.QWidgetContainer 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.
- 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
- compact_view()#
- expand_popup()#
- label()#
- setSizePolicy(size_policy1, size_policy2=None)#
- 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”
- show_popup()#
Display the contained widgets in a popup dialog
- tooltip()#
- compact_label#
- compact_show_popup#
- compact_status#
- compact_view_widget#
- container#
- expand#
- layout#
- class LedLabel(parent=None)#
Bases:
qtpy.QtWidgets.QLabel- setState(state: str)#
- default_led = 'color: white;border-radius: 10;background-color: qlineargradient(spread:pad, x1:0.04,...#
- emergency_led = 'color: white;border-radius: 10;background-color: qlineargradient(spread:pad, x1:0.145, y1:0.16,...#
- palette#
- success_led = 'color: white;border-radius: 10;background-color: qlineargradient(spread:pad, x1:0.145, y1:0.16,...#
- warning_led = 'color: white;border-radius: 10;background-color: qlineargradient(spread:pad, x1:0.232,...#