bec-widgets 1.3.0__py3-none-any.whl → 1.3.2__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 CHANGED
@@ -1,6 +1,24 @@
1
1
  # CHANGELOG
2
2
 
3
3
 
4
+ ## v1.3.2 (2024-11-05)
5
+
6
+ ### Bug Fixes
7
+
8
+ * fix(plot_base): legend text color is changed when changing dark-light theme ([`2304c9f`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/2304c9f8497c1ab1492f3e6690bb79b0464c0df8))
9
+
10
+ ### Build System
11
+
12
+ * build: PySide6 version fixed 6.7.2 ([`c6e48ec`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/c6e48ec1fe5aaee6a7c7a6f930f1520cd439cdb2))
13
+
14
+
15
+ ## v1.3.1 (2024-10-31)
16
+
17
+ ### Bug Fixes
18
+
19
+ * fix(ophyd_kind_util): Kind enums are imported from the bec widget util class ([`940ee65`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/940ee6552c1ee8d9b4e4a74c62351f2e133ab678))
20
+
21
+
4
22
  ## v1.3.0 (2024-10-30)
5
23
 
6
24
  ### Bug Fixes
@@ -140,10 +158,6 @@ if the widget should expand in-place ([`e4121a0`](https://gitlab.psi.ch/bec/bec_
140
158
 
141
159
  ## v0.116.0 (2024-10-11)
142
160
 
143
- ### Build System
144
-
145
- * build: fix PySide6 to 6.7.2 ([`908dbc1`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/908dbc1760da5b323722207163f00850b84fb90b))
146
-
147
161
  ### Features
148
162
 
149
163
  * feat: UI changes to have top toolbar with compact popup widgets (fix issue #360) ([`499b6b9`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/499b6b9a12efd931b5728b519404c41a7e29e4d6))
@@ -156,16 +170,3 @@ Makes it easy to write widgets which can have a compact
156
170
  representation with LED-like global state indicator,
157
171
  with the possibility to display a popup dialog with more
158
172
  complete UI ([`49268e3`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/49268e3829406d70b09e4d88989812f5578e46f4))
159
-
160
-
161
- ## v0.115.0 (2024-10-08)
162
-
163
- ### Bug Fixes
164
-
165
- * fix: make Alignment1D a MainWindow as it is an application ([`c5e9ed6`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/c5e9ed6e422acb908e1ada32822f5d7cc256ade7))
166
-
167
- * fix: adjust bec_qthemes dependency ([`b207e45`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/b207e45a67818ee061272ce00a09fe7ea31cd1ba))
168
-
169
- ### Features
170
-
171
- * feat: add bec-app script to launch applications ([`8bf4842`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/8bf48427884338672a8e3de3deb20439b0bfdf99))
PKG-INFO CHANGED
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bec_widgets
3
- Version: 1.3.0
3
+ Version: 1.3.2
4
4
  Summary: BEC Widgets
5
5
  Project-URL: Bug Tracker, https://gitlab.psi.ch/bec/bec_widgets/issues
6
6
  Project-URL: Homepage, https://gitlab.psi.ch/bec/bec_widgets
@@ -32,4 +32,4 @@ Provides-Extra: pyqt6
32
32
  Requires-Dist: pyqt6-webengine>=6.7; extra == 'pyqt6'
33
33
  Requires-Dist: pyqt6>=6.7; extra == 'pyqt6'
34
34
  Provides-Extra: pyside6
35
- Requires-Dist: pyside6~=6.7.2; extra == 'pyside6'
35
+ Requires-Dist: pyside6==6.7.2; extra == 'pyside6'
@@ -0,0 +1,26 @@
1
+ from enum import IntFlag
2
+
3
+ try:
4
+
5
+ from enum import KEEP
6
+
7
+ class IFBase(IntFlag, boundary=KEEP): ...
8
+
9
+ except ImportError:
10
+
11
+ IFBase = IntFlag
12
+
13
+
14
+ class Kind(IFBase):
15
+ """
16
+ This is used in the .kind attribute of all OphydObj (Signals, Devices).
17
+
18
+ A Device examines its components' .kind atttribute to decide whether to
19
+ traverse it in read(), read_configuration(), or neither. Additionally, if
20
+ decides whether to include its name in `hints['fields']`.
21
+ """
22
+
23
+ omitted = 0b000
24
+ normal = 0b001
25
+ config = 0b010
26
+ hinted = 0b101 # Notice that bool(hinted & normal) is True.
@@ -1,12 +1,12 @@
1
1
  from bec_lib.callback_handler import EventType
2
2
  from bec_lib.device import Signal
3
3
  from bec_lib.logger import bec_logger
4
- from ophyd import Kind
5
4
  from qtpy.QtCore import Property, Slot
6
5
 
7
6
  from bec_widgets.utils import ConnectionConfig
8
7
  from bec_widgets.utils.bec_widget import BECWidget
9
8
  from bec_widgets.utils.filter_io import FilterIO
9
+ from bec_widgets.utils.ophyd_kind_util import Kind
10
10
  from bec_widgets.utils.widget_io import WidgetIO
11
11
 
12
12
  logger = bec_logger.logger
@@ -147,6 +147,9 @@ class BECPlotBase(BECConnector, pg.GraphicsLayout):
147
147
  for axis in ["left", "bottom", "right", "top"]:
148
148
  self.plot_item.getAxis(axis).setPen(text_pen)
149
149
  self.plot_item.getAxis(axis).setTextPen(text_pen)
150
+ if self.plot_item.legend is not None:
151
+ for sample, label in self.plot_item.legend.items:
152
+ label.setText(label.text, color=palette.text().color())
150
153
 
151
154
  def set(self, **kwargs) -> None:
152
155
  """
@@ -1,9 +1,9 @@
1
1
  from bec_lib.device import Positioner
2
- from ophyd import Kind
3
2
  from qtpy.QtCore import QSize, Signal, Slot
4
3
  from qtpy.QtWidgets import QComboBox, QSizePolicy
5
4
 
6
5
  from bec_widgets.utils.filter_io import ComboBoxFilterHandler, FilterIO
6
+ from bec_widgets.utils.ophyd_kind_util import Kind
7
7
  from bec_widgets.widgets.base_classes.device_signal_input_base import DeviceSignalInputBase
8
8
 
9
9
 
@@ -1,10 +1,10 @@
1
1
  from bec_lib.device import Positioner
2
- from ophyd import Kind
3
2
  from qtpy.QtCore import QSize, Signal, Slot
4
3
  from qtpy.QtGui import QPainter, QPaintEvent, QPen
5
4
  from qtpy.QtWidgets import QCompleter, QLineEdit, QSizePolicy
6
5
 
7
6
  from bec_widgets.utils.colors import get_accent_colors
7
+ from bec_widgets.utils.ophyd_kind_util import Kind
8
8
  from bec_widgets.widgets.base_classes.device_signal_input_base import DeviceSignalInputBase
9
9
 
10
10
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bec_widgets
3
- Version: 1.3.0
3
+ Version: 1.3.2
4
4
  Summary: BEC Widgets
5
5
  Project-URL: Bug Tracker, https://gitlab.psi.ch/bec/bec_widgets/issues
6
6
  Project-URL: Homepage, https://gitlab.psi.ch/bec/bec_widgets
@@ -32,4 +32,4 @@ Provides-Extra: pyqt6
32
32
  Requires-Dist: pyqt6-webengine>=6.7; extra == 'pyqt6'
33
33
  Requires-Dist: pyqt6>=6.7; extra == 'pyqt6'
34
34
  Provides-Extra: pyside6
35
- Requires-Dist: pyside6~=6.7.2; extra == 'pyside6'
35
+ Requires-Dist: pyside6==6.7.2; extra == 'pyside6'
@@ -2,11 +2,11 @@
2
2
  .gitlab-ci.yml,sha256=Dc1iDjsc72UxdUtihx4uSZU0lrTQeR8hZwGx1MQBfKE,8432
3
3
  .pylintrc,sha256=eeY8YwSI74oFfq6IYIbCqnx3Vk8ZncKaatv96n_Y8Rs,18544
4
4
  .readthedocs.yaml,sha256=aSOc277LqXcsTI6lgvm_JY80lMlr69GbPKgivua2cS0,603
5
- CHANGELOG.md,sha256=_2UjH6RE9uF_L2m5tSMnH0gU_uk3yYpbiqZ4xOmn8Js,7555
5
+ CHANGELOG.md,sha256=eLw8b_ebKK_NJE_kf_dBxZtOIsGvxhwmk30skB2de_A,7491
6
6
  LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
7
- PKG-INFO,sha256=5iMS9a6gKROtyrKkwM8TJFrq8CZTmf4RI8eMo7cK_Uc,1332
7
+ PKG-INFO,sha256=kKcrKwC7zot8zkahi-SB4b5u_JomhLVJ0aZ42lircLk,1332
8
8
  README.md,sha256=Od69x-RS85Hph0-WwWACwal4yUd67XkEn4APEfHhHFw,2649
9
- pyproject.toml,sha256=AaO71xG-jmQrFd4ta4Tn04Ly7BteVemv9_HBJe55o8c,2592
9
+ pyproject.toml,sha256=bKOeKQ9n3a9s7wYvZF50bZ2ivsQ9ccZToxryADl4vM4,2592
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
@@ -69,6 +69,7 @@ bec_widgets/utils/fps_counter.py,sha256=seuCWwiNP5q2e2OEztloa66pNb3Sygh-0lEHAcYa
69
69
  bec_widgets/utils/generate_designer_plugin.py,sha256=eidqauS8YLgoxkPntPL0oSG_lYqI2D7fSyOZvOtCU_U,5891
70
70
  bec_widgets/utils/layout_manager.py,sha256=H0nKsIMaPxRkof1MEXlSmW6w1dFxA6astaGzf4stI84,4727
71
71
  bec_widgets/utils/linear_region_selector.py,sha256=83qMSGnxCePdI5UL8_M4sMeK_BU9sZBzcw0o3Z_Jgxw,3286
72
+ bec_widgets/utils/ophyd_kind_util.py,sha256=3azqxajYZY4crM04NqDqbEx7zPkWzZGYtWeCzfJu6UE,603
72
73
  bec_widgets/utils/plot_indicator_items.py,sha256=OGL7wq-cj1IBn5dfNPP12HBcT55RiBriibQPT00wK7c,9819
73
74
  bec_widgets/utils/plugin_utils.py,sha256=njvVdvF-AR47Yn80ntpvFldEvLuFx9GV-qEX4p_n4AI,5263
74
75
  bec_widgets/utils/reference_utils.py,sha256=8pq06TOvZBZdim0G6hvPJXzVDib7ve4o-Ptvfp563nk,2859
@@ -83,7 +84,7 @@ bec_widgets/utils/plugin_templates/register.template,sha256=XyL3OZPT_FTArLAM8tHd
83
84
  bec_widgets/widgets/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
84
85
  bec_widgets/widgets/base_classes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
85
86
  bec_widgets/widgets/base_classes/device_input_base.py,sha256=rM2ab6QwyLwcNNYSQI71D3i-2NN9uNr-r0GquV764Gc,15005
86
- bec_widgets/widgets/base_classes/device_signal_input_base.py,sha256=y1ebxk1FjOPNh_yg5JnYwaN0gQg5Cgf8iu4Cfyo2DQQ,9524
87
+ bec_widgets/widgets/base_classes/device_signal_input_base.py,sha256=8pzzxm_Er_Anlhq1K0lSrMTDq58CBHYUI742NNisLx8,9552
87
88
  bec_widgets/widgets/bec_progressbar/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
88
89
  bec_widgets/widgets/bec_progressbar/bec_progress_bar.pyproject,sha256=Pb3n9seM95_8myKJ0pv_9IcfJDNJJNOFBskuRdEVzhU,33
89
90
  bec_widgets/widgets/bec_progressbar/bec_progress_bar_plugin.py,sha256=b0b0F37HrwFAtizF4VC9udOe1eKbpDkrUE1pM7fI_f0,1352
@@ -173,7 +174,7 @@ bec_widgets/widgets/figure/figure.py,sha256=dHH27Fwr9dFBx4g6CXfDQr09LVAUi7xghxuk
173
174
  bec_widgets/widgets/figure/plots/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
174
175
  bec_widgets/widgets/figure/plots/axis_settings.py,sha256=grgrX4t4eAzccW4jj4HYtMSxy8Wgcd9N9J1aU7UHtIs,3723
175
176
  bec_widgets/widgets/figure/plots/axis_settings.ui,sha256=ye-guaRU_jhu7sHZS-9AjBjLrCtA1msOD0dszu4o9x8,11785
176
- bec_widgets/widgets/figure/plots/plot_base.py,sha256=7c1HQaGwxsN2vQOFuF5Z68Gp-hbeHOI04C4wvWQs89w,18180
177
+ bec_widgets/widgets/figure/plots/plot_base.py,sha256=ucpyhP_jNt37gghv1VTydBkzJaUlILvwfHFUapfN4v8,18360
177
178
  bec_widgets/widgets/figure/plots/image/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
178
179
  bec_widgets/widgets/figure/plots/image/image.py,sha256=tTtBoAA5CRhSEMae0k8dElM-MznnhcgTg0flXIIduq0,28052
179
180
  bec_widgets/widgets/figure/plots/image/image_item.py,sha256=TwHo6FwCiQgJBdr-KKy_7Y_vYSB0pPjBl1AubuZSrE0,11002
@@ -240,12 +241,12 @@ bec_widgets/widgets/scan_control/scan_control_plugin.py,sha256=7GaqmaRgbwIPjVoXc
240
241
  bec_widgets/widgets/scan_control/scan_group_box.py,sha256=JKmuBFzIS_LwY0LJkikgBZjvsLdp18ruKqWst2g4syo,12865
241
242
  bec_widgets/widgets/signal_combobox/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
242
243
  bec_widgets/widgets/signal_combobox/register_signal_combobox.py,sha256=VpdKxMVZ1VUvQwIaOEJccVApgEQtHYRbTllW4vvM5Es,487
243
- bec_widgets/widgets/signal_combobox/signal_combobox.py,sha256=IXO0ARQVXXvr8Fead69lFEOxd1W9vN8HpB81l9o5qIE,4496
244
+ bec_widgets/widgets/signal_combobox/signal_combobox.py,sha256=3qnwFKOv1ueBVMygHgFXNR1dQQWSOmp1aojZLXTA-Ek,4524
244
245
  bec_widgets/widgets/signal_combobox/signal_combobox.pyproject,sha256=xod6iyRD-WD0Uk6LWXjSxFJCQy-831pvTkKcw2FAdnM,33
245
246
  bec_widgets/widgets/signal_combobox/signal_combobox_plugin.py,sha256=Ow-gOeDtDUjX25KkxI0PKPamUokAaP25XzWKo3WtFsE,1292
246
247
  bec_widgets/widgets/signal_line_edit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
247
248
  bec_widgets/widgets/signal_line_edit/register_signal_line_edit.py,sha256=msxvE7K2BiLddp8UHDuYWXwi0Co95_I4c5AkdTWbjHg,489
248
- bec_widgets/widgets/signal_line_edit/signal_line_edit.py,sha256=WvuwJ9ObPO8cria-1ozJagMJHP36OpPETksfi2MfLHw,5098
249
+ bec_widgets/widgets/signal_line_edit/signal_line_edit.py,sha256=134O_djrPpDH5CBGmqPcZOqS0FOGFsMtgKQ-3qBwhFo,5126
249
250
  bec_widgets/widgets/signal_line_edit/signal_line_edit.pyproject,sha256=3NBnjBB6JRuF2W9-SR6x09KO1C2oB1IEV3VW__miIgI,34
250
251
  bec_widgets/widgets/signal_line_edit/signal_line_edit_plugin.py,sha256=ohbuSMRxlH69eMJdf6yJ04XSLPXVolKEYk9I7BYcph0,1296
251
252
  bec_widgets/widgets/spinner/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -289,8 +290,8 @@ bec_widgets/widgets/website/register_website_widget.py,sha256=LIQJpV9uqcBiPR9cEA
289
290
  bec_widgets/widgets/website/website.py,sha256=42pncCc_zI2eqeMArIurVmPUukRo5bTxa2h1Skah-io,3012
290
291
  bec_widgets/widgets/website/website_widget.pyproject,sha256=scOiV3cV1_BjbzpPzy2N8rIJL5P2qIZz8ObTJ-Uvdtg,25
291
292
  bec_widgets/widgets/website/website_widget_plugin.py,sha256=pz38_C2cZ0yvPPS02wdIPcmhFo_yiwUhflsASocAPQQ,1341
292
- bec_widgets-1.3.0.dist-info/METADATA,sha256=5iMS9a6gKROtyrKkwM8TJFrq8CZTmf4RI8eMo7cK_Uc,1332
293
- bec_widgets-1.3.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
294
- bec_widgets-1.3.0.dist-info/entry_points.txt,sha256=dItMzmwA1wizJ1Itx15qnfJ0ZzKVYFLVJ1voxT7K7D4,214
295
- bec_widgets-1.3.0.dist-info/licenses/LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
296
- bec_widgets-1.3.0.dist-info/RECORD,,
293
+ bec_widgets-1.3.2.dist-info/METADATA,sha256=kKcrKwC7zot8zkahi-SB4b5u_JomhLVJ0aZ42lircLk,1332
294
+ bec_widgets-1.3.2.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
295
+ bec_widgets-1.3.2.dist-info/entry_points.txt,sha256=dItMzmwA1wizJ1Itx15qnfJ0ZzKVYFLVJ1voxT7K7D4,214
296
+ bec_widgets-1.3.2.dist-info/licenses/LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
297
+ bec_widgets-1.3.2.dist-info/RECORD,,
pyproject.toml CHANGED
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "bec_widgets"
7
- version = "1.3.0"
7
+ version = "1.3.2"
8
8
  description = "BEC Widgets"
9
9
  requires-python = ">=3.10"
10
10
  classifiers = [
@@ -38,7 +38,7 @@ dev = [
38
38
  "pytest~=8.0",
39
39
  ]
40
40
  pyqt6 = ["PyQt6>=6.7", "PyQt6-WebEngine>=6.7"]
41
- pyside6 = ["PySide6~=6.7.2"]
41
+ pyside6 = ["PySide6==6.7.2"]
42
42
 
43
43
  [project.urls]
44
44
  "Bug Tracker" = "https://gitlab.psi.ch/bec/bec_widgets/issues"