bec-widgets 0.80.0__py3-none-any.whl → 0.81.0__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 +12 -14
- PKG-INFO +1 -1
- bec_widgets/utils/entry_validator.py +1 -1
- bec_widgets/widgets/buttons/color_button/color_button.py +19 -0
- {bec_widgets-0.80.0.dist-info → bec_widgets-0.81.0.dist-info}/METADATA +1 -1
- {bec_widgets-0.80.0.dist-info → bec_widgets-0.81.0.dist-info}/RECORD +10 -10
- pyproject.toml +1 -1
- {bec_widgets-0.80.0.dist-info → bec_widgets-0.81.0.dist-info}/WHEEL +0 -0
- {bec_widgets-0.80.0.dist-info → bec_widgets-0.81.0.dist-info}/entry_points.txt +0 -0
- {bec_widgets-0.80.0.dist-info → bec_widgets-0.81.0.dist-info}/licenses/LICENSE +0 -0
CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## v0.81.0 (2024-07-06)
|
4
|
+
|
5
|
+
### Feature
|
6
|
+
|
7
|
+
* feat(color_button): can get colors in RGBA or HEX ([`9594be2`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/9594be260680d11c8550ff74ffb8d679e5a5b8f6))
|
8
|
+
|
9
|
+
## v0.80.1 (2024-07-06)
|
10
|
+
|
11
|
+
### Fix
|
12
|
+
|
13
|
+
* fix(entry_validator): check for entry == "" ([`61de7e9`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/61de7e9e221c766b9fb3ec23246da6a11c96a986))
|
14
|
+
|
3
15
|
## v0.80.0 (2024-07-06)
|
4
16
|
|
5
17
|
### Feature
|
@@ -129,17 +141,3 @@
|
|
129
141
|
### Feature
|
130
142
|
|
131
143
|
* feat(widgets): added simple bec queue widget ([`3faee98`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/3faee98ec80041a27e4c1f1156178de6f9dcdc63))
|
132
|
-
|
133
|
-
### Refactor
|
134
|
-
|
135
|
-
* refactor(dispatcher): cleanup ([`ca02132`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/ca02132c8d18535b37e9192e00459d2aca6ba5cf))
|
136
|
-
|
137
|
-
## v0.74.1 (2024-06-26)
|
138
|
-
|
139
|
-
### Fix
|
140
|
-
|
141
|
-
* fix(rings): rings properties updated right after setting ([`c8b7367`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/c8b7367815b095f8e4aa8b819481efb701f2e542))
|
142
|
-
|
143
|
-
### Test
|
144
|
-
|
145
|
-
* test(bec_figure): tests for removing widgets with rpc e2e ([`a268caa`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/a268caaa30711fcc7ece542d24578d74cbf65c77))
|
PKG-INFO
CHANGED
@@ -19,7 +19,7 @@ class EntryValidator:
|
|
19
19
|
device = self.devices[name]
|
20
20
|
description = device.describe()
|
21
21
|
|
22
|
-
if entry is None:
|
22
|
+
if entry is None or entry == "":
|
23
23
|
entry = next(iter(device._hints), name) if hasattr(device, "_hints") else name
|
24
24
|
if entry not in description:
|
25
25
|
raise ValueError(f"Entry '{entry}' not found in device '{name}' signals")
|
@@ -1,3 +1,7 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
|
3
|
+
from typing import Literal
|
4
|
+
|
1
5
|
import pyqtgraph as pg
|
2
6
|
|
3
7
|
|
@@ -15,3 +19,18 @@ class ColorButton(pg.ColorButton):
|
|
15
19
|
self.colorDialog.setCurrentColor(self.color())
|
16
20
|
self.colorDialog.open()
|
17
21
|
self.colorDialog.exec()
|
22
|
+
|
23
|
+
def get_color(self, format: Literal["RGBA", "HEX"] = "RGBA") -> tuple | str:
|
24
|
+
"""
|
25
|
+
Get the color of the button in the specified format.
|
26
|
+
|
27
|
+
Args:
|
28
|
+
format(Literal["RGBA", "HEX"]): The format of the returned color.
|
29
|
+
|
30
|
+
Returns:
|
31
|
+
tuple|str: The color in the specified format.
|
32
|
+
"""
|
33
|
+
if format == "RGBA":
|
34
|
+
return self.color().getRgb()
|
35
|
+
if format == "HEX":
|
36
|
+
return self.color().name()
|
@@ -2,11 +2,11 @@
|
|
2
2
|
.gitlab-ci.yml,sha256=vuDJPAYOK0995_H6fu0N5dIgIrOJgTvKr0HZkNWlxMw,8142
|
3
3
|
.pylintrc,sha256=eeY8YwSI74oFfq6IYIbCqnx3Vk8ZncKaatv96n_Y8Rs,18544
|
4
4
|
.readthedocs.yaml,sha256=aSOc277LqXcsTI6lgvm_JY80lMlr69GbPKgivua2cS0,603
|
5
|
-
CHANGELOG.md,sha256=
|
5
|
+
CHANGELOG.md,sha256=OgrWel1F911JTU6mVXk65yl1rsjQBJ81hLemhVjkqxw,6813
|
6
6
|
LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
|
7
|
-
PKG-INFO,sha256=
|
7
|
+
PKG-INFO,sha256=uOA0ry3j9gMHIqijdlx1A5CaV40Td9mpTu97RpEnrus,1309
|
8
8
|
README.md,sha256=Od69x-RS85Hph0-WwWACwal4yUd67XkEn4APEfHhHFw,2649
|
9
|
-
pyproject.toml,sha256=
|
9
|
+
pyproject.toml,sha256=6qgj8PnVjY9-eNJnF2Xq-oVV2t4EF5TI7bB7C0DlYvw,2358
|
10
10
|
.git_hooks/pre-commit,sha256=n3RofIZHJl8zfJJIUomcMyYGFi_rwq4CC19z0snz3FI,286
|
11
11
|
.gitlab/issue_templates/bug_report_template.md,sha256=gAuyEwl7XlnebBrkiJ9AqffSNOywmr8vygUFWKTuQeI,386
|
12
12
|
.gitlab/issue_templates/documentation_update_template.md,sha256=FHLdb3TS_D9aL4CYZCjyXSulbaW5mrN2CmwTaeLPbNw,860
|
@@ -46,7 +46,7 @@ bec_widgets/utils/bec_widget.py,sha256=Y-t90XMe2PASvY96Xve5a_jevXqnxk1SJ-mfy6ULC
|
|
46
46
|
bec_widgets/utils/colors.py,sha256=CP_lwj757CpwdVhWSfdNEXKFCEVVVF48DizD2WJKSwI,9759
|
47
47
|
bec_widgets/utils/container_utils.py,sha256=m3VUyAYmSWkEwApP9tBvKxPYVtc2kHw4toxIpMryJy4,1495
|
48
48
|
bec_widgets/utils/crosshair.py,sha256=SubY4FQCI6vUKsmMYGKHR7uYdGQJ6vhoYLuC1XlKS9I,9626
|
49
|
-
bec_widgets/utils/entry_validator.py,sha256=
|
49
|
+
bec_widgets/utils/entry_validator.py,sha256=3skJIsUwTYicT76AMHm_M78RiWtUgyD2zb-Rxo2HdHQ,1313
|
50
50
|
bec_widgets/utils/generate_designer_plugin.py,sha256=T6DqL29sN4LcXLH8Hoa410UGnoRzjsZ-z0PRGTEzkRE,5809
|
51
51
|
bec_widgets/utils/layout_manager.py,sha256=H0nKsIMaPxRkof1MEXlSmW6w1dFxA6astaGzf4stI84,4727
|
52
52
|
bec_widgets/utils/plugin_utils.py,sha256=njvVdvF-AR47Yn80ntpvFldEvLuFx9GV-qEX4p_n4AI,5263
|
@@ -72,7 +72,7 @@ bec_widgets/widgets/bec_status_box/register_bec_status_box.py,sha256=EiQITnkNw7I
|
|
72
72
|
bec_widgets/widgets/bec_status_box/status_item.py,sha256=2SoMmgHL_MFnr7XiStFjLolHh0Vs3P68ZvP8kMIGc8w,5046
|
73
73
|
bec_widgets/widgets/buttons/__init__.py,sha256=74ucIRU6-anoqQ-zT7wbrysmxhg_3_04xGhN_kllNUI,48
|
74
74
|
bec_widgets/widgets/buttons/color_button/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
75
|
-
bec_widgets/widgets/buttons/color_button/color_button.py,sha256=
|
75
|
+
bec_widgets/widgets/buttons/color_button/color_button.py,sha256=Faszdcu6iJo2n0fdAORvKMf926Le9f454t6JIIZRc-0,1049
|
76
76
|
bec_widgets/widgets/buttons/color_button/color_button.pyproject,sha256=LUYF4VkDOB4ttVe7YfvLh64K-XZg0-xaVT06BqCT3UA,30
|
77
77
|
bec_widgets/widgets/buttons/color_button/color_button_plugin.py,sha256=4phedgYl94PAn2VL-_IPIU3rKq6dwDGgHXyk5c2HcgU,1264
|
78
78
|
bec_widgets/widgets/buttons/color_button/register_color_button.py,sha256=PqsqOMNcdBL956mRIRFau4emb0bExuEtI9_l1l6rf88,483
|
@@ -248,8 +248,8 @@ tests/unit_tests/test_configs/config_device_no_entry.yaml,sha256=hdvue9KLc_kfNzG
|
|
248
248
|
tests/unit_tests/test_configs/config_scan.yaml,sha256=vo484BbWOjA_e-h6bTjSV9k7QaQHrlAvx-z8wtY-P4E,1915
|
249
249
|
tests/unit_tests/test_msgs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
250
250
|
tests/unit_tests/test_msgs/available_scans_message.py,sha256=m_z97hIrjHXXMa2Ex-UvsPmTxOYXfjxyJaGkIY6StTY,46532
|
251
|
-
bec_widgets-0.
|
252
|
-
bec_widgets-0.
|
253
|
-
bec_widgets-0.
|
254
|
-
bec_widgets-0.
|
255
|
-
bec_widgets-0.
|
251
|
+
bec_widgets-0.81.0.dist-info/METADATA,sha256=uOA0ry3j9gMHIqijdlx1A5CaV40Td9mpTu97RpEnrus,1309
|
252
|
+
bec_widgets-0.81.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
253
|
+
bec_widgets-0.81.0.dist-info/entry_points.txt,sha256=3otEkCdDB9LZJuBLzG4pFLK5Di0CVybN_12IsZrQ-58,166
|
254
|
+
bec_widgets-0.81.0.dist-info/licenses/LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
|
255
|
+
bec_widgets-0.81.0.dist-info/RECORD,,
|
pyproject.toml
CHANGED
File without changes
|
File without changes
|
File without changes
|