bec-widgets 0.58.0__py3-none-any.whl → 0.58.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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
 
4
4
 
5
+ ## v0.58.1 (2024-06-07)
6
+
7
+ ### Fix
8
+
9
+ * fix(dock): new dock can be detached upon creation ([`02a2608`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/02a26086c4540127a11c235cba30afc4fd712007))
10
+
11
+
5
12
  ## v0.58.0 (2024-06-07)
6
13
 
7
14
  ### Feature
@@ -151,7 +158,3 @@
151
158
  * fix(bar): ring saves current value in config ([`9648e3e`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/9648e3ea96a4109be6be694d855151ed6d3ad661))
152
159
 
153
160
  * fix(dock): dock saves configs of all children widgets ([`4be756a`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/4be756a8676421c3a3451458995232407295df84))
154
-
155
- * fix(dock_area): save/restore state is saved in config ([`46face0`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/46face0ee59122f04cb383da685a6658beeeb389))
156
-
157
- * fix(figure): added correct types of configs to subplot widgets ([`6f3b1ea`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/6f3b1ea985c18929b9bab54239eeb600f03b274a))
PKG-INFO CHANGED
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bec_widgets
3
- Version: 0.58.0
3
+ Version: 0.58.1
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
@@ -153,38 +153,6 @@ class BECDock(BECConnector, Dock):
153
153
  """
154
154
  return list(RPCWidgetHandler.widget_classes.keys())
155
155
 
156
- # def add_widget_bec(
157
- # self,
158
- # widget_type: str,
159
- # row=None,
160
- # col=0,
161
- # rowspan=1,
162
- # colspan=1,
163
- # shift: Literal["down", "up", "left", "right"] = "down",
164
- # ):
165
- # """
166
- # Add a widget to the dock.
167
- #
168
- # Args:
169
- # widget_type(str): The widget to add. Only BEC RPC widgets from RPCWidgetHandler are allowed.
170
- # row(int): The row to add the widget to. If None, the widget will be added to the next available row.
171
- # col(int): The column to add the widget to.
172
- # rowspan(int): The number of rows the widget should span.
173
- # colspan(int): The number of columns the widget should span.
174
- # shift(Literal["down", "up", "left", "right"]): The direction to shift the widgets if the position is occupied.
175
- # """
176
- # if row is None:
177
- # row = self.layout.rowCount()
178
- #
179
- # if self.layout_manager.is_position_occupied(row, col):
180
- # self.layout_manager.shift_widgets(shift, start_row=row)
181
- #
182
- # widget = RPCWidgetHandler.create_widget(widget_type)
183
- # self.addWidget(widget, row=row, col=col, rowspan=rowspan, colspan=colspan)
184
- # self.config.widgets[widget.gui_id] = widget.config
185
- #
186
- # return widget
187
-
188
156
  def add_widget(
189
157
  self,
190
158
  widget: BECConnector | str,
@@ -137,6 +137,7 @@ class BECDockArea(BECConnector, DockArea):
137
137
  position: Literal["bottom", "top", "left", "right", "above", "below"] = None,
138
138
  relative_to: BECDock | None = None,
139
139
  closable: bool = False,
140
+ floating: bool = False,
140
141
  prefix: str = "dock",
141
142
  widget: str | QWidget | None = None,
142
143
  row: int = None,
@@ -152,6 +153,7 @@ class BECDockArea(BECConnector, DockArea):
152
153
  position(Literal["bottom", "top", "left", "right", "above", "below"]): The position of the dock.
153
154
  relative_to(BECDock): The dock to which the new dock should be added relative to.
154
155
  closable(bool): Whether the dock is closable.
156
+ floating(bool): Whether the dock is detached after creating.
155
157
  prefix(str): The prefix for the dock name if no name is provided.
156
158
  widget(str|QWidget|None): The widget to be added to the dock. While using RPC, only BEC RPC widgets from RPCWidgetHandler are allowed.
157
159
  row(int): The row of the added widget.
@@ -192,6 +194,8 @@ class BECDockArea(BECConnector, DockArea):
192
194
  if self._instructions_visible:
193
195
  self._instructions_visible = False
194
196
  self.update()
197
+ if floating:
198
+ dock.detach()
195
199
  return dock
196
200
 
197
201
  def detach_dock(self, dock_name: str) -> BECDock:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bec_widgets
3
- Version: 0.58.0
3
+ Version: 0.58.1
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=RF2JeGh8tG09DyAOwEu991IZy3C8Vm6lI8O_4Dr9B9Q,12239
3
3
  .pylintrc,sha256=OstrgmEyP0smNFBKoIN5_26-UmNZgMHnbjvAWX0UrLs,18535
4
4
  .readthedocs.yaml,sha256=aSOc277LqXcsTI6lgvm_JY80lMlr69GbPKgivua2cS0,603
5
- CHANGELOG.md,sha256=DpEse23QSEq7hFb2bWl5GnW7Ay6Q9t7BwTCySPWfPH4,7025
5
+ CHANGELOG.md,sha256=F3oE4DHkbux-acWCO5g04vsozT6PFW8O8QuHatjak50,6887
6
6
  LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
7
- PKG-INFO,sha256=FPcxK292hYbo485NoVRWJ_5r2fHywBiH-7XpQhm_m4A,1178
7
+ PKG-INFO,sha256=Wp-jNfe3gv_ps9mcKGp_pyG5CW3_-47xzLQopZWKblo,1178
8
8
  README.md,sha256=y4jB6wvArS7N8_iTbKWnSM_oRAqLA2GqgzUR-FMh5sU,2645
9
- pyproject.toml,sha256=mNf28XGVaiQWJ8l6BM-WxVobNUtJWiG7H5rB24RCkGo,1822
9
+ pyproject.toml,sha256=gevJbxgjyaxZhW9okMre-0DdthcX1iulEUjhV1r3Si4,1822
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,8 +48,8 @@ bec_widgets/utils/widget_io.py,sha256=f36198CvT_EzWQ_cg2G-4tRRsaMdJ3yVqsZWKJCQEf
48
48
  bec_widgets/utils/yaml_dialog.py,sha256=cMVif-39SB9WjwGH5FWBJcFs4tnfFJFs5cacydRyhy0,1853
49
49
  bec_widgets/widgets/__init__.py,sha256=LKgIuY3CI-NHCa_bY9pThYhxLH0MHDo8iNEJDDVIVmw,172
50
50
  bec_widgets/widgets/dock/__init__.py,sha256=B7foHt02gnhM7mFksa7GJVwT7n0j_JvYDCt6wc6XR5g,61
51
- bec_widgets/widgets/dock/dock.py,sha256=HCr0MeXljzIFOSuHuWfTz_B5str03pjkKXPX8PCrJ9c,9010
52
- bec_widgets/widgets/dock/dock_area.py,sha256=zupu05KHrrdUlNNQe-x9zC-bXDk-qPXvr_mONCm-JwI,7759
51
+ bec_widgets/widgets/dock/dock.py,sha256=npSJijKdaPZk6T4LrWQ-Q8PfJMgIniqo1UYLahPowA0,7695
52
+ bec_widgets/widgets/dock/dock_area.py,sha256=9c_tLzyBRllLfc4H5o9-4bvasWp5hWe1NWg4mupXVtU,7911
53
53
  bec_widgets/widgets/figure/__init__.py,sha256=3hGx_KOV7QHCYAV06aNuUgKq4QIYCjUTad-DrwkUaBM,44
54
54
  bec_widgets/widgets/figure/figure.py,sha256=O--r3dyeOPXndV2400wpE9lPdBezzd0ZUt7yA2u2n0A,31468
55
55
  bec_widgets/widgets/figure/plots/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -154,7 +154,7 @@ tests/unit_tests/test_configs/config_device_no_entry.yaml,sha256=hdvue9KLc_kfNzG
154
154
  tests/unit_tests/test_configs/config_scan.yaml,sha256=vo484BbWOjA_e-h6bTjSV9k7QaQHrlAvx-z8wtY-P4E,1915
155
155
  tests/unit_tests/test_msgs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
156
156
  tests/unit_tests/test_msgs/available_scans_message.py,sha256=m_z97hIrjHXXMa2Ex-UvsPmTxOYXfjxyJaGkIY6StTY,46532
157
- bec_widgets-0.58.0.dist-info/METADATA,sha256=FPcxK292hYbo485NoVRWJ_5r2fHywBiH-7XpQhm_m4A,1178
158
- bec_widgets-0.58.0.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
159
- bec_widgets-0.58.0.dist-info/licenses/LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
160
- bec_widgets-0.58.0.dist-info/RECORD,,
157
+ bec_widgets-0.58.1.dist-info/METADATA,sha256=Wp-jNfe3gv_ps9mcKGp_pyG5CW3_-47xzLQopZWKblo,1178
158
+ bec_widgets-0.58.1.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
159
+ bec_widgets-0.58.1.dist-info/licenses/LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
160
+ bec_widgets-0.58.1.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 = "0.58.0"
7
+ version = "0.58.1"
8
8
  description = "BEC Widgets"
9
9
  requires-python = ">=3.10"
10
10
  classifiers = [