bec-widgets 0.110.0__py3-none-any.whl → 0.112.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 +26 -30
- PKG-INFO +1 -1
- bec_widgets/cli/client.py +42 -0
- bec_widgets/cli/generate_cli.py +1 -0
- bec_widgets/qt_utils/palette_viewer.py +1 -1
- bec_widgets/widgets/console/console.py +366 -129
- bec_widgets/widgets/console/console.pyproject +1 -0
- bec_widgets/widgets/console/console_plugin.py +58 -0
- bec_widgets/widgets/console/register_console.py +15 -0
- bec_widgets/widgets/position_indicator/position_indicator.py +251 -33
- bec_widgets/widgets/positioner_box/positioner_box.py +6 -2
- bec_widgets/widgets/positioner_box/positioner_box.ui +14 -1
- bec_widgets/widgets/positioner_box/positioner_control_line.py +0 -2
- bec_widgets/widgets/positioner_box/positioner_control_line.ui +41 -23
- {bec_widgets-0.110.0.dist-info → bec_widgets-0.112.0.dist-info}/METADATA +1 -1
- {bec_widgets-0.110.0.dist-info → bec_widgets-0.112.0.dist-info}/RECORD +20 -17
- pyproject.toml +1 -1
- {bec_widgets-0.110.0.dist-info → bec_widgets-0.112.0.dist-info}/WHEEL +0 -0
- {bec_widgets-0.110.0.dist-info → bec_widgets-0.112.0.dist-info}/entry_points.txt +0 -0
- {bec_widgets-0.110.0.dist-info → bec_widgets-0.112.0.dist-info}/licenses/LICENSE +0 -0
CHANGELOG.md
CHANGED
@@ -1,5 +1,31 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## v0.112.0 (2024-09-17)
|
4
|
+
|
5
|
+
### Feature
|
6
|
+
|
7
|
+
* feat: console: various improvements, auto-adapt rows to widget size, Qt Designer plugin ([`286ad71`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/286ad7196b0b8562d648fb304eab7d759b6a959b))
|
8
|
+
|
9
|
+
## v0.111.0 (2024-09-17)
|
10
|
+
|
11
|
+
### Documentation
|
12
|
+
|
13
|
+
* docs(position_indicator): updated position indicator documentation and added designer properties ([`60f7d54`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/60f7d54e2b4c3129de6c95729b8b4aea1757174f))
|
14
|
+
|
15
|
+
### Feature
|
16
|
+
|
17
|
+
* feat(position_indicator): improved design and added more customization options ([`d15b222`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/d15b22250fbceb708d89872c0380693e04acb107))
|
18
|
+
|
19
|
+
### Fix
|
20
|
+
|
21
|
+
* fix(position_indicator): fixed user access ([`dd932dd`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/dd932dd8f3910ab67ec8403124f4e176d048e542))
|
22
|
+
|
23
|
+
* fix(generate_cli): fixed type annotations ([`d3c1a1b`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/d3c1a1b2edcba7afea9d369820fa7974ac29c333))
|
24
|
+
|
25
|
+
* fix(positioner_box): visual improvements to the positioner_box and positioner_control_line ([`7ea4a48`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/7ea4a482e7cd9499a7268ac887b345cab01632aa))
|
26
|
+
|
27
|
+
* fix(palette viewer): fixed background for tool tip ([`9045323`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/9045323049d2a39c36fc8845f3b2883d6933436b))
|
28
|
+
|
3
29
|
## v0.110.0 (2024-09-12)
|
4
30
|
|
5
31
|
### Feature
|
@@ -131,33 +157,3 @@
|
|
131
157
|
* test(vscode): popen call does not have to be the only one ([`39f98ec`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/39f98ec223ba8b59e478ac788c08c59ffe886b4e))
|
132
158
|
|
133
159
|
## v0.102.0 (2024-09-04)
|
134
|
-
|
135
|
-
### Documentation
|
136
|
-
|
137
|
-
* docs(buttons): buttons section of docs split to appearance and queue buttons ([`047aa26`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/047aa26a60220c826cc1375cf81daf11d1f3ab5c))
|
138
|
-
|
139
|
-
* docs(tests): added tests tutorial for widget ([`18d8561`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/18d8561c965d149a7662085f7dbe2a39a8c4a475))
|
140
|
-
|
141
|
-
### Feature
|
142
|
-
|
143
|
-
* feat(queue): BECQueue controls extended with Resume, Stop, Abort, Reset buttons ([`0d7c10e`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/0d7c10e670e4937787e1afaa19ca8259ac752486))
|
144
|
-
|
145
|
-
### Fix
|
146
|
-
|
147
|
-
* fix(queue_reset_button): queue reset has to be confirmed with msgBox ([`9dd43aa`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/9dd43aa1fd3991368002605df4389a7a7271011b))
|
148
|
-
|
149
|
-
### Refactor
|
150
|
-
|
151
|
-
* refactor(tests): positioner box test changed to use create_widget fixture ([`df5eff3`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/df5eff3147c79ff0278e6a5a09c8f73d5236aed3))
|
152
|
-
|
153
|
-
## v0.101.0 (2024-09-02)
|
154
|
-
|
155
|
-
### Feature
|
156
|
-
|
157
|
-
* feat: add Dap dialog widget ([`9781b77`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/9781b77de27b2810fbb1047a61b1832dd186db01))
|
158
|
-
|
159
|
-
### Refactor
|
160
|
-
|
161
|
-
* refactor: add docs, cleanup ([`61ecf49`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/61ecf491e52bfbfa0d5a84764a9095310659043d))
|
162
|
-
|
163
|
-
## v0.100.0 (2024-09-01)
|
PKG-INFO
CHANGED
bec_widgets/cli/client.py
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# This file was automatically generated by generate_cli.py
|
2
2
|
|
3
|
+
from __future__ import annotations
|
4
|
+
|
3
5
|
import enum
|
4
6
|
from typing import Literal, Optional, overload
|
5
7
|
|
@@ -29,6 +31,7 @@ class Widgets(str, enum.Enum):
|
|
29
31
|
DeviceComboBox = "DeviceComboBox"
|
30
32
|
DeviceLineEdit = "DeviceLineEdit"
|
31
33
|
LMFitDialog = "LMFitDialog"
|
34
|
+
PositionIndicator = "PositionIndicator"
|
32
35
|
PositionerBox = "PositionerBox"
|
33
36
|
PositionerControlLine = "PositionerControlLine"
|
34
37
|
ResetButton = "ResetButton"
|
@@ -2539,6 +2542,45 @@ class LMFitDialog(RPCBase):
|
|
2539
2542
|
"""
|
2540
2543
|
|
2541
2544
|
|
2545
|
+
class PositionIndicator(RPCBase):
|
2546
|
+
@rpc_call
|
2547
|
+
def set_value(self, position: float):
|
2548
|
+
"""
|
2549
|
+
None
|
2550
|
+
"""
|
2551
|
+
|
2552
|
+
@rpc_call
|
2553
|
+
def set_range(self, min_value: float, max_value: float):
|
2554
|
+
"""
|
2555
|
+
Set the range of the position indicator
|
2556
|
+
|
2557
|
+
Args:
|
2558
|
+
min_value(float): Minimum value of the range
|
2559
|
+
max_value(float): Maximum value of the range
|
2560
|
+
"""
|
2561
|
+
|
2562
|
+
@property
|
2563
|
+
@rpc_call
|
2564
|
+
def vertical(self):
|
2565
|
+
"""
|
2566
|
+
Property to determine the orientation of the position indicator
|
2567
|
+
"""
|
2568
|
+
|
2569
|
+
@property
|
2570
|
+
@rpc_call
|
2571
|
+
def indicator_width(self):
|
2572
|
+
"""
|
2573
|
+
Property to get the width of the indicator
|
2574
|
+
"""
|
2575
|
+
|
2576
|
+
@property
|
2577
|
+
@rpc_call
|
2578
|
+
def rounded_corners(self):
|
2579
|
+
"""
|
2580
|
+
Property to get the rounded corners of the position indicator
|
2581
|
+
"""
|
2582
|
+
|
2583
|
+
|
2542
2584
|
class PositionerBox(RPCBase):
|
2543
2585
|
@rpc_call
|
2544
2586
|
def set_positioner(self, positioner: "str | Positioner"):
|
bec_widgets/cli/generate_cli.py
CHANGED
@@ -167,7 +167,7 @@ class PaletteViewer(BECWidget, QWidget):
|
|
167
167
|
QLabel: The label with the background color.
|
168
168
|
"""
|
169
169
|
button = QLabel()
|
170
|
-
button.setStyleSheet(f"background-color: {color.name()};")
|
170
|
+
button.setStyleSheet(f"QLabel {{ background-color: {color.name()}; }}")
|
171
171
|
button.setToolTip("Click to copy color to clipboard")
|
172
172
|
button.setCursor(Qt.PointingHandCursor)
|
173
173
|
button.mousePressEvent = lambda event: QApplication.clipboard().setText(color.name())
|