bec-widgets 0.94.7__py3-none-any.whl → 0.95.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- CHANGELOG.md +46 -44
- PKG-INFO +1 -1
- bec_widgets/cli/client.py +19 -0
- bec_widgets/examples/plugin_example_pyside/tictactoeplugin.py +5 -3
- bec_widgets/widgets/bec_queue/bec_queue_plugin.py +5 -3
- bec_widgets/widgets/bec_status_box/bec_status_box_plugin.py +5 -3
- bec_widgets/widgets/color_button/color_button_plugin.py +5 -3
- bec_widgets/widgets/colormap_selector/colormap_selector_plugin.py +5 -3
- bec_widgets/widgets/device_browser/__init__.py +0 -0
- bec_widgets/widgets/device_browser/device_browser.py +107 -0
- bec_widgets/widgets/device_browser/device_browser.pyproject +1 -0
- bec_widgets/widgets/device_browser/device_browser.ui +44 -0
- bec_widgets/widgets/device_browser/device_browser_plugin.py +57 -0
- bec_widgets/widgets/device_browser/device_item/__init__.py +1 -0
- bec_widgets/widgets/device_browser/device_item/device_item.py +53 -0
- bec_widgets/widgets/device_browser/register_device_browser.py +15 -0
- bec_widgets/widgets/device_combobox/device_combo_box_plugin.py +5 -3
- bec_widgets/widgets/device_line_edit/device_line_edit_plugin.py +5 -3
- bec_widgets/widgets/dock/dock_area_plugin.py +5 -3
- bec_widgets/widgets/image/bec_image_widget_plugin.py +5 -3
- bec_widgets/widgets/motor_map/bec_motor_map_widget_plugin.py +5 -3
- bec_widgets/widgets/position_indicator/position_indicator_plugin.py +5 -3
- bec_widgets/widgets/positioner_box/positioner_box_plugin.py +5 -3
- bec_widgets/widgets/positioner_box/positioner_control_line_plugin.py +5 -3
- bec_widgets/widgets/ring_progress_bar/ring_progress_bar_plugin.py +5 -3
- bec_widgets/widgets/scan_control/scan_control_plugin.py +5 -3
- bec_widgets/widgets/spinner/spinner_widget_plugin.py +5 -3
- bec_widgets/widgets/stop_button/stop_button_plugin.py +5 -3
- bec_widgets/widgets/text_box/text_box_plugin.py +5 -3
- bec_widgets/widgets/toggle/toggle_switch_plugin.py +5 -3
- bec_widgets/widgets/vscode/vs_code_editor_plugin.py +5 -3
- bec_widgets/widgets/waveform/bec_waveform_widget_plugin.py +5 -3
- bec_widgets/widgets/website/website_widget_plugin.py +5 -3
- {bec_widgets-0.94.7.dist-info → bec_widgets-0.95.1.dist-info}/METADATA +1 -1
- {bec_widgets-0.94.7.dist-info → bec_widgets-0.95.1.dist-info}/RECORD +97 -77
- docs/_static/custom.css +10 -10
- docs/assets/widget_screenshots/buttons.png +0 -0
- docs/assets/widget_screenshots/device_box.png +0 -0
- docs/assets/widget_screenshots/device_browser.png +0 -0
- docs/assets/widget_screenshots/device_inputs.png +0 -0
- docs/assets/widget_screenshots/dock_area.png +0 -0
- docs/assets/widget_screenshots/figure.png +0 -0
- docs/assets/widget_screenshots/image_widget.png +0 -0
- docs/assets/widget_screenshots/motor_map_widget.png +0 -0
- docs/assets/widget_screenshots/position_indicator.png +0 -0
- docs/assets/widget_screenshots/queue.png +0 -0
- docs/assets/widget_screenshots/ring_progress_bar.png +0 -0
- docs/assets/widget_screenshots/scan_controller.png +0 -0
- docs/assets/widget_screenshots/spinner.gif +0 -0
- docs/assets/widget_screenshots/status_box.png +0 -0
- docs/assets/widget_screenshots/text_box.png +0 -0
- docs/assets/widget_screenshots/toggle.png +0 -0
- docs/assets/widget_screenshots/waveform_widget.png +0 -0
- docs/assets/widget_screenshots/website.png +0 -0
- docs/conf.py +1 -0
- docs/developer/developer.md +2 -0
- docs/developer/introduction/introduction.md +1 -0
- docs/developer/introduction/useful_links.md +23 -0
- docs/index.md +4 -0
- docs/requirements.txt +1 -0
- docs/user/user.md +4 -0
- docs/user/widgets/bec_figure/bec_figure.md +105 -0
- docs/user/widgets/bec_status_box/bec_status_box.md +38 -0
- docs/user/widgets/buttons/buttons.md +50 -0
- docs/user/widgets/device_browser/device_browser.md +36 -0
- docs/user/widgets/device_browser/device_browser.png +0 -0
- docs/user/widgets/device_input/device_input.md +100 -0
- docs/user/widgets/dock_area/BECDockArea.png +0 -0
- docs/user/widgets/dock_area/bec_dock_area.md +107 -0
- docs/user/widgets/image/image_widget.md +84 -0
- docs/user/widgets/motor_map/motor_map.md +80 -0
- docs/user/widgets/position_indicator/position_indicator.md +76 -0
- docs/user/widgets/positioner_box/positioner_box.md +63 -0
- docs/user/widgets/progress_bar/ring_progress_bar.md +103 -0
- docs/user/widgets/queue/queue.md +41 -0
- docs/user/widgets/scan_control/scan_control.md +46 -0
- docs/user/widgets/spinner/spinner.md +75 -0
- docs/user/widgets/text_box/text_box.md +74 -0
- docs/user/widgets/toggle/toggle.md +66 -0
- docs/user/widgets/waveform/waveform_widget.md +132 -0
- docs/user/widgets/website/website.md +69 -0
- docs/user/widgets/widgets.md +212 -12
- pyproject.toml +1 -1
- tests/unit_tests/client_mocks.py +14 -0
- tests/unit_tests/test_device_browser.py +83 -0
- bec_widgets/assets/designer_icons/code.png +0 -0
- bec_widgets/assets/designer_icons/color_button.png +0 -0
- bec_widgets/assets/designer_icons/colormap_selector.png +0 -0
- bec_widgets/assets/designer_icons/device_combo_box.png +0 -0
- bec_widgets/assets/designer_icons/device_line_edit.png +0 -0
- bec_widgets/assets/designer_icons/dock_area.png +0 -0
- bec_widgets/assets/designer_icons/games.png +0 -0
- bec_widgets/assets/designer_icons/image.png +0 -0
- bec_widgets/assets/designer_icons/motor_map.png +0 -0
- bec_widgets/assets/designer_icons/position_indicator.png +0 -0
- bec_widgets/assets/designer_icons/positioner_box.png +0 -0
- bec_widgets/assets/designer_icons/queue.png +0 -0
- bec_widgets/assets/designer_icons/ring_progress.png +0 -0
- bec_widgets/assets/designer_icons/scan_control.png +0 -0
- bec_widgets/assets/designer_icons/spinner.png +0 -0
- bec_widgets/assets/designer_icons/status.png +0 -0
- bec_widgets/assets/designer_icons/stop.png +0 -0
- bec_widgets/assets/designer_icons/text.png +0 -0
- bec_widgets/assets/designer_icons/toggle.png +0 -0
- bec_widgets/assets/designer_icons/waveform.png +0 -0
- bec_widgets/assets/designer_icons/web.png +0 -0
- docs/user/widgets/bec_figure.md +0 -146
- docs/user/widgets/bec_status_box.md +0 -30
- docs/user/widgets/buttons.md +0 -37
- docs/user/widgets/ring_progress_bar.md +0 -54
- docs/user/widgets/scan_control.md +0 -35
- docs/user/widgets/text_box.md +0 -33
- docs/user/widgets/website.md +0 -21
- {bec_widgets-0.94.7.dist-info → bec_widgets-0.95.1.dist-info}/WHEEL +0 -0
- {bec_widgets-0.94.7.dist-info → bec_widgets-0.95.1.dist-info}/entry_points.txt +0 -0
- {bec_widgets-0.94.7.dist-info → bec_widgets-0.95.1.dist-info}/licenses/LICENSE +0 -0
- /docs/user/widgets/{BECFigure.png → bec_figure/BECFigure.png} +0 -0
- /docs/user/widgets/{bec_status_box.gif → bec_status_box/bec_status_box.gif} +0 -0
- /docs/user/widgets/{image_plot.gif → image/image_plot.gif} +0 -0
- /docs/user/widgets/{motor.gif → motor_map/motor.gif} +0 -0
- /docs/user/widgets/{progress_bar.gif → progress_bar/progress_bar.gif} +0 -0
- /docs/user/widgets/{scan_control.gif → scan_control/scan_control.gif} +0 -0
- /docs/user/widgets/{bec_figure_dap.gif → waveform/bec_figure_dap.gif} +0 -0
- /docs/user/widgets/{scatter_2D.gif → waveform/scatter_2D.gif} +0 -0
- /docs/user/widgets/{w1D.gif → waveform/w1D.gif} +0 -0
@@ -2,8 +2,9 @@
|
|
2
2
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
3
3
|
import os
|
4
4
|
|
5
|
+
from bec_qthemes import material_icon
|
5
6
|
from qtpy.QtDesigner import QDesignerCustomWidgetInterface
|
6
|
-
from qtpy.QtGui import QIcon
|
7
|
+
from qtpy.QtGui import QGuiApplication, QIcon
|
7
8
|
|
8
9
|
import bec_widgets
|
9
10
|
from bec_widgets.widgets.position_indicator.position_indicator import PositionIndicator
|
@@ -34,8 +35,9 @@ class PositionIndicatorPlugin(QDesignerCustomWidgetInterface): # pragma: no cov
|
|
34
35
|
return "BEC Utils"
|
35
36
|
|
36
37
|
def icon(self):
|
37
|
-
|
38
|
-
|
38
|
+
palette = QGuiApplication.palette()
|
39
|
+
pixmap = material_icon("horizontal_distribute", color=palette.text().color(), filled=True)
|
40
|
+
return QIcon(pixmap)
|
39
41
|
|
40
42
|
def includeFile(self):
|
41
43
|
return "position_indicator"
|
@@ -3,8 +3,9 @@
|
|
3
3
|
|
4
4
|
import os
|
5
5
|
|
6
|
+
from bec_qthemes import material_icon
|
6
7
|
from qtpy.QtDesigner import QDesignerCustomWidgetInterface
|
7
|
-
from qtpy.QtGui import QIcon
|
8
|
+
from qtpy.QtGui import QGuiApplication, QIcon
|
8
9
|
|
9
10
|
from bec_widgets.widgets.positioner_box.positioner_box import PositionerBox
|
10
11
|
|
@@ -33,8 +34,9 @@ class PositionerBoxPlugin(QDesignerCustomWidgetInterface): # pragma: no cover
|
|
33
34
|
return "Device Control"
|
34
35
|
|
35
36
|
def icon(self):
|
36
|
-
|
37
|
-
|
37
|
+
palette = QGuiApplication.palette()
|
38
|
+
pixmap = material_icon("switch_right", color=palette.text().color(), filled=True)
|
39
|
+
return QIcon(pixmap)
|
38
40
|
|
39
41
|
def includeFile(self):
|
40
42
|
return "positioner_box"
|
@@ -3,8 +3,9 @@
|
|
3
3
|
|
4
4
|
import os
|
5
5
|
|
6
|
+
from bec_qthemes import material_icon
|
6
7
|
from qtpy.QtDesigner import QDesignerCustomWidgetInterface
|
7
|
-
from qtpy.QtGui import QIcon
|
8
|
+
from qtpy.QtGui import QGuiApplication, QIcon
|
8
9
|
|
9
10
|
from bec_widgets.widgets.positioner_box.positioner_control_line import PositionerControlLine
|
10
11
|
|
@@ -33,8 +34,9 @@ class PositionerControlLinePlugin(QDesignerCustomWidgetInterface): # pragma: no
|
|
33
34
|
return "Device Control"
|
34
35
|
|
35
36
|
def icon(self):
|
36
|
-
|
37
|
-
|
37
|
+
palette = QGuiApplication.palette()
|
38
|
+
pixmap = material_icon("switch_left", color=palette.text().color(), filled=True)
|
39
|
+
return QIcon(pixmap)
|
38
40
|
|
39
41
|
def includeFile(self):
|
40
42
|
return "positioner_control_line"
|
@@ -2,8 +2,9 @@
|
|
2
2
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
3
3
|
import os
|
4
4
|
|
5
|
+
from bec_qthemes import material_icon
|
5
6
|
from qtpy.QtDesigner import QDesignerCustomWidgetInterface
|
6
|
-
from qtpy.QtGui import QIcon
|
7
|
+
from qtpy.QtGui import QGuiApplication, QIcon
|
7
8
|
|
8
9
|
import bec_widgets
|
9
10
|
from bec_widgets.widgets.ring_progress_bar.ring_progress_bar import RingProgressBar
|
@@ -33,8 +34,9 @@ class RingProgressBarPlugin(QDesignerCustomWidgetInterface): # pragma: no cover
|
|
33
34
|
return "BEC Utils"
|
34
35
|
|
35
36
|
def icon(self):
|
36
|
-
|
37
|
-
|
37
|
+
palette = QGuiApplication.palette()
|
38
|
+
pixmap = material_icon("track_changes", color=palette.text().color(), filled=True)
|
39
|
+
return QIcon(pixmap)
|
38
40
|
|
39
41
|
def includeFile(self):
|
40
42
|
return "ring_progress_bar"
|
@@ -2,8 +2,9 @@
|
|
2
2
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
3
3
|
import os
|
4
4
|
|
5
|
+
from bec_qthemes import material_icon
|
5
6
|
from qtpy.QtDesigner import QDesignerCustomWidgetInterface
|
6
|
-
from qtpy.QtGui import QIcon
|
7
|
+
from qtpy.QtGui import QGuiApplication, QIcon
|
7
8
|
|
8
9
|
import bec_widgets
|
9
10
|
from bec_widgets.widgets.scan_control.scan_control import ScanControl
|
@@ -33,8 +34,9 @@ class ScanControlPlugin(QDesignerCustomWidgetInterface): # pragma: no cover
|
|
33
34
|
return "Device Control"
|
34
35
|
|
35
36
|
def icon(self):
|
36
|
-
|
37
|
-
|
37
|
+
palette = QGuiApplication.palette()
|
38
|
+
pixmap = material_icon("stacked_line_chart", color=palette.text().color(), filled=True)
|
39
|
+
return QIcon(pixmap)
|
38
40
|
|
39
41
|
def includeFile(self):
|
40
42
|
return "scan_control"
|
@@ -2,8 +2,9 @@
|
|
2
2
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
3
3
|
import os
|
4
4
|
|
5
|
+
from bec_qthemes import material_icon
|
5
6
|
from qtpy.QtDesigner import QDesignerCustomWidgetInterface
|
6
|
-
from qtpy.QtGui import QIcon
|
7
|
+
from qtpy.QtGui import QGuiApplication, QIcon
|
7
8
|
|
8
9
|
import bec_widgets
|
9
10
|
from bec_widgets.widgets.spinner.spinner import SpinnerWidget
|
@@ -34,8 +35,9 @@ class SpinnerWidgetPlugin(QDesignerCustomWidgetInterface): # pragma: no cover
|
|
34
35
|
return "BEC Utils"
|
35
36
|
|
36
37
|
def icon(self):
|
37
|
-
|
38
|
-
|
38
|
+
palette = QGuiApplication.palette()
|
39
|
+
pixmap = material_icon("progress_activity", color=palette.text().color(), filled=True)
|
40
|
+
return QIcon(pixmap)
|
39
41
|
|
40
42
|
def includeFile(self):
|
41
43
|
return "spinner_widget"
|
@@ -2,8 +2,9 @@
|
|
2
2
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
3
3
|
import os
|
4
4
|
|
5
|
+
from bec_qthemes import material_icon
|
5
6
|
from qtpy.QtDesigner import QDesignerCustomWidgetInterface
|
6
|
-
from qtpy.QtGui import QIcon
|
7
|
+
from qtpy.QtGui import QGuiApplication, QIcon
|
7
8
|
|
8
9
|
import bec_widgets
|
9
10
|
from bec_widgets.widgets.stop_button.stop_button import StopButton
|
@@ -34,8 +35,9 @@ class StopButtonPlugin(QDesignerCustomWidgetInterface): # pragma: no cover
|
|
34
35
|
return "BEC Utils"
|
35
36
|
|
36
37
|
def icon(self):
|
37
|
-
|
38
|
-
|
38
|
+
palette = QGuiApplication.palette()
|
39
|
+
pixmap = material_icon("dangerous", color=palette.text().color(), filled=True)
|
40
|
+
return QIcon(pixmap)
|
39
41
|
|
40
42
|
def includeFile(self):
|
41
43
|
return "stop_button"
|
@@ -2,8 +2,9 @@
|
|
2
2
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
3
3
|
import os
|
4
4
|
|
5
|
+
from bec_qthemes import material_icon
|
5
6
|
from qtpy.QtDesigner import QDesignerCustomWidgetInterface
|
6
|
-
from qtpy.QtGui import QIcon
|
7
|
+
from qtpy.QtGui import QGuiApplication, QIcon
|
7
8
|
|
8
9
|
import bec_widgets
|
9
10
|
from bec_widgets.widgets.text_box.text_box import TextBox
|
@@ -33,8 +34,9 @@ class TextBoxPlugin(QDesignerCustomWidgetInterface): # pragma: no cover
|
|
33
34
|
return "BEC Utils"
|
34
35
|
|
35
36
|
def icon(self):
|
36
|
-
|
37
|
-
|
37
|
+
palette = QGuiApplication.palette()
|
38
|
+
pixmap = material_icon("chat", color=palette.text().color(), filled=True)
|
39
|
+
return QIcon(pixmap)
|
38
40
|
|
39
41
|
def includeFile(self):
|
40
42
|
return "text_box"
|
@@ -2,8 +2,9 @@
|
|
2
2
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
3
3
|
import os
|
4
4
|
|
5
|
+
from bec_qthemes import material_icon
|
5
6
|
from qtpy.QtDesigner import QDesignerCustomWidgetInterface
|
6
|
-
from qtpy.QtGui import QIcon
|
7
|
+
from qtpy.QtGui import QGuiApplication, QIcon
|
7
8
|
|
8
9
|
import bec_widgets
|
9
10
|
from bec_widgets.widgets.toggle.toggle import ToggleSwitch
|
@@ -34,8 +35,9 @@ class ToggleSwitchPlugin(QDesignerCustomWidgetInterface): # pragma: no cover
|
|
34
35
|
return "BEC Utils"
|
35
36
|
|
36
37
|
def icon(self):
|
37
|
-
|
38
|
-
|
38
|
+
palette = QGuiApplication.palette()
|
39
|
+
pixmap = material_icon("toggle_on", color=palette.text().color(), filled=True)
|
40
|
+
return QIcon(pixmap)
|
39
41
|
|
40
42
|
def includeFile(self):
|
41
43
|
return "toggle_switch"
|
@@ -2,8 +2,9 @@
|
|
2
2
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
3
3
|
import os
|
4
4
|
|
5
|
+
from bec_qthemes import material_icon
|
5
6
|
from qtpy.QtDesigner import QDesignerCustomWidgetInterface
|
6
|
-
from qtpy.QtGui import QIcon
|
7
|
+
from qtpy.QtGui import QGuiApplication, QIcon
|
7
8
|
|
8
9
|
import bec_widgets
|
9
10
|
from bec_widgets.widgets.vscode.vscode import VSCodeEditor
|
@@ -34,8 +35,9 @@ class VSCodeEditorPlugin(QDesignerCustomWidgetInterface): # pragma: no cover
|
|
34
35
|
return "BEC Developer"
|
35
36
|
|
36
37
|
def icon(self):
|
37
|
-
|
38
|
-
|
38
|
+
palette = QGuiApplication.palette()
|
39
|
+
pixmap = material_icon("developer_mode_tv", color=palette.text().color(), filled=True)
|
40
|
+
return QIcon(pixmap)
|
39
41
|
|
40
42
|
def includeFile(self):
|
41
43
|
return "vs_code_editor"
|
@@ -2,8 +2,9 @@
|
|
2
2
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
3
3
|
import os
|
4
4
|
|
5
|
+
from bec_qthemes import material_icon
|
5
6
|
from qtpy.QtDesigner import QDesignerCustomWidgetInterface
|
6
|
-
from qtpy.QtGui import QIcon
|
7
|
+
from qtpy.QtGui import QGuiApplication, QIcon
|
7
8
|
|
8
9
|
import bec_widgets
|
9
10
|
from bec_widgets.widgets.waveform.waveform_widget import BECWaveformWidget
|
@@ -34,8 +35,9 @@ class BECWaveformWidgetPlugin(QDesignerCustomWidgetInterface): # pragma: no cov
|
|
34
35
|
return "BEC Plots"
|
35
36
|
|
36
37
|
def icon(self):
|
37
|
-
|
38
|
-
|
38
|
+
palette = QGuiApplication.palette()
|
39
|
+
pixmap = material_icon("show_chart", color=palette.text().color(), filled=True)
|
40
|
+
return QIcon(pixmap)
|
39
41
|
|
40
42
|
def includeFile(self):
|
41
43
|
return "bec_waveform_widget"
|
@@ -2,8 +2,9 @@
|
|
2
2
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
3
3
|
import os
|
4
4
|
|
5
|
+
from bec_qthemes import material_icon
|
5
6
|
from qtpy.QtDesigner import QDesignerCustomWidgetInterface
|
6
|
-
from qtpy.QtGui import QIcon
|
7
|
+
from qtpy.QtGui import QGuiApplication, QIcon
|
7
8
|
|
8
9
|
import bec_widgets
|
9
10
|
from bec_widgets.widgets.website.website import WebsiteWidget
|
@@ -33,8 +34,9 @@ class WebsiteWidgetPlugin(QDesignerCustomWidgetInterface): # pragma: no cover
|
|
33
34
|
return "BEC Utils"
|
34
35
|
|
35
36
|
def icon(self):
|
36
|
-
|
37
|
-
|
37
|
+
palette = QGuiApplication.palette()
|
38
|
+
pixmap = material_icon("travel_explore", color=palette.text().color(), filled=True)
|
39
|
+
return QIcon(pixmap)
|
38
40
|
|
39
41
|
def includeFile(self):
|
40
42
|
return "website_widget"
|