bec-widgets 2.13.0__py3-none-any.whl → 2.13.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,22 @@
1
1
  # CHANGELOG
2
2
 
3
3
 
4
+ ## v2.13.2 (2025-06-13)
5
+
6
+ ### Bug Fixes
7
+
8
+ - Allow sets in generated form types
9
+ ([`32fd959`](https://github.com/bec-project/bec_widgets/commit/32fd959e675108265f35139b44d02ba966bd37e2))
10
+
11
+
12
+ ## v2.13.1 (2025-06-12)
13
+
14
+ ### Bug Fixes
15
+
16
+ - **main_window**: Event filter applied on QEvent.Type.StatusTip; closes #698
17
+ ([`9f853b0`](https://github.com/bec-project/bec_widgets/commit/9f853b08640f0ffff9f5b59c6d5e0dd3e210d4f6))
18
+
19
+
4
20
  ## v2.13.0 (2025-06-10)
5
21
 
6
22
  ### Bug Fixes
PKG-INFO CHANGED
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bec_widgets
3
- Version: 2.13.0
3
+ Version: 2.13.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
@@ -64,12 +64,12 @@ class FormItemSpec(BaseModel):
64
64
  if isinstance(v, (type, UnionType)):
65
65
  return v
66
66
  if isinstance(v, GenericAlias):
67
- if v.__origin__ in [list, dict] and all(
67
+ if v.__origin__ in [list, dict, set] and all(
68
68
  arg in allowed_primitives for arg in v.__args__
69
69
  ):
70
70
  return v
71
71
  raise ValueError(
72
- f"Generics of type {v} are not supported - only lists and dicts of primitive types {allowed_primitives}"
72
+ f"Generics of type {v} are not supported - only lists, dicts and sets of primitive types {allowed_primitives}"
73
73
  )
74
74
  if type(v) is type(Literal[""]): # _LiteralGenericAlias is not exported from typing
75
75
  arg_types = set(type(arg) for arg in v.__args__)
@@ -1,6 +1,6 @@
1
1
  import os
2
2
 
3
- from qtpy.QtCore import QSize
3
+ from qtpy.QtCore import QEvent, QSize
4
4
  from qtpy.QtGui import QAction, QActionGroup, QIcon
5
5
  from qtpy.QtWidgets import QApplication, QMainWindow, QStyle
6
6
 
@@ -168,6 +168,11 @@ class BECMainWindow(BECWidget, QMainWindow):
168
168
  def change_theme(self, theme: str):
169
169
  apply_theme(theme)
170
170
 
171
+ def event(self, event):
172
+ if event.type() == QEvent.Type.StatusTip:
173
+ return True
174
+ return super().event(event)
175
+
171
176
  def cleanup(self):
172
177
  central_widget = self.centralWidget()
173
178
  central_widget.close()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bec_widgets
3
- Version: 2.13.0
3
+ Version: 2.13.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
@@ -2,11 +2,11 @@
2
2
  .gitlab-ci.yml,sha256=1nMYldzVk0tFkBWYTcUjumOrdSADASheWOAc0kOFDYs,9509
3
3
  .pylintrc,sha256=eeY8YwSI74oFfq6IYIbCqnx3Vk8ZncKaatv96n_Y8Rs,18544
4
4
  .readthedocs.yaml,sha256=ivqg3HTaOxNbEW3bzWh9MXAkrekuGoNdj0Mj3SdRYuw,639
5
- CHANGELOG.md,sha256=lpk84iB31ZE4vtdCbH3gdT4uaXDPjBtS5wRWdWVfAWs,298987
5
+ CHANGELOG.md,sha256=iuJO9sV3hXRO8Mb0kvbvzNA8AJlemMi5HDYPFvQjN50,299402
6
6
  LICENSE,sha256=Daeiu871NcAp8uYi4eB_qHgvypG-HX0ioRQyQxFwjeg,1531
7
- PKG-INFO,sha256=V1mspizllUKCge8RUbKpm3syVXrjTQ2o-HNcjmuGycA,1252
7
+ PKG-INFO,sha256=y1GOvEzZwWxxQRtQojJJIP1Xpk8QxJ7iyLwk1OhaM2Q,1252
8
8
  README.md,sha256=oY5Jc1uXehRASuwUJ0umin2vfkFh7tHF-LLruHTaQx0,3560
9
- pyproject.toml,sha256=tpSXUHRyxcZAanH3gC6f-6olaIoOknm1-uDLA3nyt2I,2827
9
+ pyproject.toml,sha256=fbAIPFbGJPDiSwa40mxTGSJ95-1-3yXVLkDVp4BmndU,2827
10
10
  .git_hooks/pre-commit,sha256=n3RofIZHJl8zfJJIUomcMyYGFi_rwq4CC19z0snz3FI,286
11
11
  .github/pull_request_template.md,sha256=F_cJXzooWMFgMGtLK-7KeGcQt0B4AYFse5oN0zQ9p6g,801
12
12
  .github/ISSUE_TEMPLATE/bug_report.yml,sha256=WdRnt7HGxvsIBLzhkaOWNfg8IJQYa_oV9_F08Ym6znQ,1081
@@ -104,7 +104,7 @@ bec_widgets/utils/widget_state_manager.py,sha256=tzrxVmnGa6IHSEdeh-R68aQ934BsuS9
104
104
  bec_widgets/utils/yaml_dialog.py,sha256=T6UyGNGdmpXW74fa_7Nk6b99T5pp2Wvyw3AOauRc8T8,2407
105
105
  bec_widgets/utils/forms_from_types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
106
106
  bec_widgets/utils/forms_from_types/forms.py,sha256=o2BPhegPDI5b6zzLIrFrWja2FkKWcz97iwSrl0j0JSM,10097
107
- bec_widgets/utils/forms_from_types/items.py,sha256=Jkou4xvx9ZJmTATnPntGaFXW5MUa_ChXedPT3HzsdM8,13002
107
+ bec_widgets/utils/forms_from_types/items.py,sha256=Pt5QWMtbu9Hb6Mcvm0-SR8NUY3-KsSwcjkGDHmdwq-w,13013
108
108
  bec_widgets/utils/forms_from_types/styles.py,sha256=PeMx8bLI2PX0--U1QOS-3yuGQiyAX4W3EpL_IA5iIrI,702
109
109
  bec_widgets/utils/plugin_templates/plugin.template,sha256=DWtJdHpdsVtbiTTOniH3zBe5a40ztQ20o_-Hclyu38s,1266
110
110
  bec_widgets/utils/plugin_templates/register.template,sha256=XyL3OZPT_FTArLAM8tHd5qMqv2ZuAbJAZLsNNnHcagU,417
@@ -121,7 +121,7 @@ bec_widgets/widgets/containers/dock/register_dock_area.py,sha256=L7BL4qknCjtqsDP
121
121
  bec_widgets/widgets/containers/layout_manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
122
122
  bec_widgets/widgets/containers/layout_manager/layout_manager.py,sha256=V7s8mtB3VLPstyGVaR9YKcoTVlfMMOYNpIJUsw2WQVc,35198
123
123
  bec_widgets/widgets/containers/main_window/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
124
- bec_widgets/widgets/containers/main_window/main_window.py,sha256=Y9egriyEuK9b7sER5gqwTSlCmA7EnIMnKpeF-Ui2UM0,6189
124
+ bec_widgets/widgets/containers/main_window/main_window.py,sha256=1cqsQ4uo63RBuQnZzpw1cWf10b9VgQvXgq4UQPEnhKo,6336
125
125
  bec_widgets/widgets/containers/main_window/addons/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
126
126
  bec_widgets/widgets/containers/main_window/addons/web_links.py,sha256=d5OgzgI9zb-NAC0pOGanOtJX3nZoe4x8QuQTw-_hK_8,434
127
127
  bec_widgets/widgets/control/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -408,8 +408,8 @@ bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button.py,sha256=O
408
408
  bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button.pyproject,sha256=Lbi9zb6HNlIq14k6hlzR-oz6PIFShBuF7QxE6d87d64,34
409
409
  bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button_plugin.py,sha256=CzChz2SSETYsR8-36meqWnsXCT-FIy_J_xeU5coWDY8,1350
410
410
  bec_widgets/widgets/utility/visual/dark_mode_button/register_dark_mode_button.py,sha256=rMpZ1CaoucwobgPj1FuKTnt07W82bV1GaSYdoqcdMb8,521
411
- bec_widgets-2.13.0.dist-info/METADATA,sha256=V1mspizllUKCge8RUbKpm3syVXrjTQ2o-HNcjmuGycA,1252
412
- bec_widgets-2.13.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
413
- bec_widgets-2.13.0.dist-info/entry_points.txt,sha256=dItMzmwA1wizJ1Itx15qnfJ0ZzKVYFLVJ1voxT7K7D4,214
414
- bec_widgets-2.13.0.dist-info/licenses/LICENSE,sha256=Daeiu871NcAp8uYi4eB_qHgvypG-HX0ioRQyQxFwjeg,1531
415
- bec_widgets-2.13.0.dist-info/RECORD,,
411
+ bec_widgets-2.13.2.dist-info/METADATA,sha256=y1GOvEzZwWxxQRtQojJJIP1Xpk8QxJ7iyLwk1OhaM2Q,1252
412
+ bec_widgets-2.13.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
413
+ bec_widgets-2.13.2.dist-info/entry_points.txt,sha256=dItMzmwA1wizJ1Itx15qnfJ0ZzKVYFLVJ1voxT7K7D4,214
414
+ bec_widgets-2.13.2.dist-info/licenses/LICENSE,sha256=Daeiu871NcAp8uYi4eB_qHgvypG-HX0ioRQyQxFwjeg,1531
415
+ bec_widgets-2.13.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 = "2.13.0"
7
+ version = "2.13.2"
8
8
  description = "BEC Widgets"
9
9
  requires-python = ">=3.10"
10
10
  classifiers = [