bec-widgets 2.2.0__py3-none-any.whl → 2.3.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 +8 -0
- PKG-INFO +1 -1
- bec_widgets/utils/bec_connector.py +11 -0
- {bec_widgets-2.2.0.dist-info → bec_widgets-2.3.0.dist-info}/METADATA +1 -1
- {bec_widgets-2.2.0.dist-info → bec_widgets-2.3.0.dist-info}/RECORD +9 -9
- pyproject.toml +1 -1
- {bec_widgets-2.2.0.dist-info → bec_widgets-2.3.0.dist-info}/WHEEL +0 -0
- {bec_widgets-2.2.0.dist-info → bec_widgets-2.3.0.dist-info}/entry_points.txt +0 -0
- {bec_widgets-2.2.0.dist-info → bec_widgets-2.3.0.dist-info}/licenses/LICENSE +0 -0
CHANGELOG.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
3
|
|
4
|
+
## v2.3.0 (2025-05-09)
|
5
|
+
|
6
|
+
### Features
|
7
|
+
|
8
|
+
- **bec_connector**: Ability to change object name during runtime
|
9
|
+
([`dc151cd`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/dc151cdfe39f1f0507eeee307a35c1677ae4d8c5))
|
10
|
+
|
11
|
+
|
4
12
|
## v2.2.0 (2025-05-09)
|
5
13
|
|
6
14
|
### Features
|
PKG-INFO
CHANGED
@@ -205,6 +205,17 @@ class BECConnector:
|
|
205
205
|
f"This is not necessarily an error as the parent may be deleted before the child and includes already a cleanup. The following exception was raised:\n{content}"
|
206
206
|
)
|
207
207
|
|
208
|
+
def change_object_name(self, name: str) -> None:
|
209
|
+
"""
|
210
|
+
Change the object name of the widget. Unregister old name and register the new one.
|
211
|
+
|
212
|
+
Args:
|
213
|
+
name (str): The new object name.
|
214
|
+
"""
|
215
|
+
self.rpc_register.remove_rpc(self)
|
216
|
+
self.setObjectName(name.replace("-", "_").replace(" ", "_"))
|
217
|
+
QTimer.singleShot(0, self._update_object_name)
|
218
|
+
|
208
219
|
def _update_object_name(self) -> None:
|
209
220
|
"""
|
210
221
|
Enforce a unique object name among siblings and register the object for RPC.
|
@@ -2,11 +2,11 @@
|
|
2
2
|
.gitlab-ci.yml,sha256=1nMYldzVk0tFkBWYTcUjumOrdSADASheWOAc0kOFDYs,9509
|
3
3
|
.pylintrc,sha256=eeY8YwSI74oFfq6IYIbCqnx3Vk8ZncKaatv96n_Y8Rs,18544
|
4
4
|
.readthedocs.yaml,sha256=aSOc277LqXcsTI6lgvm_JY80lMlr69GbPKgivua2cS0,603
|
5
|
-
CHANGELOG.md,sha256=
|
5
|
+
CHANGELOG.md,sha256=84qXQAMmKo7pVz1-jy1-rsVvR4anW_XFW_sa-hfaVwQ,272212
|
6
6
|
LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
|
7
|
-
PKG-INFO,sha256=
|
7
|
+
PKG-INFO,sha256=VLRYtZJrG4rhrc2HYV5vKW6xKbxmg4G-C-yAtPLHqrI,1224
|
8
8
|
README.md,sha256=KgdKusjlvEvFtdNZCeDMO91y77MWK2iDcYMDziksOr4,2553
|
9
|
-
pyproject.toml,sha256=
|
9
|
+
pyproject.toml,sha256=Cpof5gMH5hRjnHv3I9uwUER3V86lyW_eHUUcYfgku_s,2568
|
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
|
@@ -48,7 +48,7 @@ bec_widgets/examples/plugin_example_pyside/tictactoetaskmenu.py,sha256=SiJaoX3OY
|
|
48
48
|
bec_widgets/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
49
49
|
bec_widgets/tests/utils.py,sha256=GbQtN7qf9n-8FoAfNddZ4aAqA7oBo_hGAlnKELd6Xzw,6943
|
50
50
|
bec_widgets/utils/__init__.py,sha256=1930ji1Jj6dVuY81Wd2kYBhHYNV-2R0bN_L4o9zBj1U,533
|
51
|
-
bec_widgets/utils/bec_connector.py,sha256=
|
51
|
+
bec_widgets/utils/bec_connector.py,sha256=ATOSyZqryn1QHPc7aotiDnUtzFhlj_gmcukMT_pqjHQ,19272
|
52
52
|
bec_widgets/utils/bec_designer.py,sha256=ehNl_i743rijmhPiIGNd1bihE7-l4oJzTVoa4yjPjls,5426
|
53
53
|
bec_widgets/utils/bec_dispatcher.py,sha256=y9EFIgU3JqIs7R10XnLh0I1_Skts9sbPe3ijOVJumYs,9837
|
54
54
|
bec_widgets/utils/bec_plugin_helper.py,sha256=efg97QDAqhZYeqE1wk3vEgkFuhNewg4rvJrtB7mRCAE,3139
|
@@ -378,8 +378,8 @@ bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button.py,sha256=O
|
|
378
378
|
bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button.pyproject,sha256=Lbi9zb6HNlIq14k6hlzR-oz6PIFShBuF7QxE6d87d64,34
|
379
379
|
bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button_plugin.py,sha256=CzChz2SSETYsR8-36meqWnsXCT-FIy_J_xeU5coWDY8,1350
|
380
380
|
bec_widgets/widgets/utility/visual/dark_mode_button/register_dark_mode_button.py,sha256=rMpZ1CaoucwobgPj1FuKTnt07W82bV1GaSYdoqcdMb8,521
|
381
|
-
bec_widgets-2.
|
382
|
-
bec_widgets-2.
|
383
|
-
bec_widgets-2.
|
384
|
-
bec_widgets-2.
|
385
|
-
bec_widgets-2.
|
381
|
+
bec_widgets-2.3.0.dist-info/METADATA,sha256=VLRYtZJrG4rhrc2HYV5vKW6xKbxmg4G-C-yAtPLHqrI,1224
|
382
|
+
bec_widgets-2.3.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
383
|
+
bec_widgets-2.3.0.dist-info/entry_points.txt,sha256=dItMzmwA1wizJ1Itx15qnfJ0ZzKVYFLVJ1voxT7K7D4,214
|
384
|
+
bec_widgets-2.3.0.dist-info/licenses/LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
|
385
|
+
bec_widgets-2.3.0.dist-info/RECORD,,
|
pyproject.toml
CHANGED
File without changes
|
File without changes
|
File without changes
|