bec-widgets 0.83.0__py3-none-any.whl → 0.83.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 +16 -18
- PKG-INFO +2 -2
- bec_widgets/examples/jupyter_console/jupyter_console_window.py +2 -2
- bec_widgets/qt_utils/toolbar.py +3 -1
- bec_widgets/utils/colors.py +27 -0
- bec_widgets/widgets/bec_status_box/bec_status_box.py +2 -2
- bec_widgets/widgets/device_box/device_box.py +2 -2
- bec_widgets/widgets/figure/figure.py +2 -3
- bec_widgets/widgets/figure/plots/axis_settings.py +2 -2
- bec_widgets/widgets/scan_control/scan_control.py +2 -2
- bec_widgets/widgets/spinner/spinner.py +4 -3
- {bec_widgets-0.83.0.dist-info → bec_widgets-0.83.1.dist-info}/METADATA +2 -2
- {bec_widgets-0.83.0.dist-info → bec_widgets-0.83.1.dist-info}/RECORD +22 -22
- pyproject.toml +2 -2
- tests/references/SpinnerWidget/SpinnerWidget_darwin.png +0 -0
- tests/references/SpinnerWidget/SpinnerWidget_linux.png +0 -0
- tests/references/SpinnerWidget/SpinnerWidget_started_darwin.png +0 -0
- tests/references/SpinnerWidget/SpinnerWidget_started_linux.png +0 -0
- tests/unit_tests/test_spinner.py +2 -2
- {bec_widgets-0.83.0.dist-info → bec_widgets-0.83.1.dist-info}/WHEEL +0 -0
- {bec_widgets-0.83.0.dist-info → bec_widgets-0.83.1.dist-info}/entry_points.txt +0 -0
- {bec_widgets-0.83.0.dist-info → bec_widgets-0.83.1.dist-info}/licenses/LICENSE +0 -0
CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## v0.83.1 (2024-07-14)
|
4
|
+
|
5
|
+
### Fix
|
6
|
+
|
7
|
+
* fix(toolbar): default transparent background ([`eab7883`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/eab78839792f175b7ac127ca603385c6baa5ff15))
|
8
|
+
|
9
|
+
* fix: use apply_theme ([`2d4249e`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/2d4249e73a792fed1c2c7ab79bb8aec38c57466c))
|
10
|
+
|
11
|
+
* fix: spinner: update reference image for widget test, use apply_theme ([`63db135`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/63db1352ee883d35670b3a692dbe51d6d01872ae))
|
12
|
+
|
13
|
+
* fix: replace pyqtdarktheme by qdarkstyle, add 'apply_theme' function (in utils/colors.py) ([`8308115`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/8308115f3646245d825fc47ab57297d3460bbcf5))
|
14
|
+
|
15
|
+
### Test
|
16
|
+
|
17
|
+
* test(toolbar): added reference pngs for spinner for Darwin ([`11a7204`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/11a7204c98e0bf211a8721d296b45d24a3102b97))
|
18
|
+
|
3
19
|
## v0.83.0 (2024-07-08)
|
4
20
|
|
5
21
|
### Feature
|
@@ -125,21 +141,3 @@
|
|
125
141
|
* fix: overwrite closeEvent and call super class ([`bc0ef78`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/bc0ef7893ef100b71b62101c459655509b534a56))
|
126
142
|
|
127
143
|
## v0.79.1 (2024-07-03)
|
128
|
-
|
129
|
-
### Fix
|
130
|
-
|
131
|
-
* fix: use libdir env var to preload Python library, also for Linux platform ([`d7718d4`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/d7718d4dcb9728c050b6421388af4d484f3741f2))
|
132
|
-
|
133
|
-
## v0.79.0 (2024-07-03)
|
134
|
-
|
135
|
-
### Feature
|
136
|
-
|
137
|
-
* feat(motor_map_widget): standalone MotorMap Widget with toolbar + plugin ([`6e75642`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/6e756420907d7093557e945bc92bc4cfc0138d07))
|
138
|
-
|
139
|
-
* feat(motor_map): method to reset history trace ([`5960918`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/5960918137dd41cdeb94e50f8abc4f169cf45c11))
|
140
|
-
|
141
|
-
### Fix
|
142
|
-
|
143
|
-
* fix(toolbar): change default color to black to match BECFigure theme ([`b8774e0`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/b8774e0b0bc43dcd00f94f42539a778e507ca27d))
|
144
|
-
|
145
|
-
* fix(motor_map): fixed bug with residual trace after changing motors ([`aaa0d10`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/aaa0d1003d2e94b45bafe4f700852c2c05288aea))
|
PKG-INFO
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: bec_widgets
|
3
|
-
Version: 0.83.
|
3
|
+
Version: 0.83.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
|
@@ -14,9 +14,9 @@ Requires-Dist: bec-lib~=2.16
|
|
14
14
|
Requires-Dist: black~=24.0
|
15
15
|
Requires-Dist: isort>=5.13.2,~=5.13
|
16
16
|
Requires-Dist: pydantic~=2.0
|
17
|
-
Requires-Dist: pyqtdarktheme~=2.1
|
18
17
|
Requires-Dist: pyqtgraph~=0.13
|
19
18
|
Requires-Dist: pyte
|
19
|
+
Requires-Dist: qdarkstyle>=3.2.2
|
20
20
|
Requires-Dist: qtconsole>=5.5.1,~=5.5
|
21
21
|
Requires-Dist: qtpy~=2.4
|
22
22
|
Provides-Extra: dev
|
@@ -2,7 +2,6 @@ import os
|
|
2
2
|
|
3
3
|
import numpy as np
|
4
4
|
import pyqtgraph as pg
|
5
|
-
import qdarktheme
|
6
5
|
from qtconsole.inprocess import QtInProcessKernelManager
|
7
6
|
from qtconsole.rich_jupyter_widget import RichJupyterWidget
|
8
7
|
from qtpy.QtCore import QSize
|
@@ -10,6 +9,7 @@ from qtpy.QtGui import QIcon
|
|
10
9
|
from qtpy.QtWidgets import QApplication, QVBoxLayout, QWidget
|
11
10
|
|
12
11
|
from bec_widgets.utils import BECDispatcher, UILoader
|
12
|
+
from bec_widgets.utils.colors import apply_theme
|
13
13
|
from bec_widgets.widgets.dock.dock_area import BECDockArea
|
14
14
|
from bec_widgets.widgets.figure import BECFigure
|
15
15
|
from bec_widgets.widgets.jupyter_console.jupyter_console import BECJupyterConsole
|
@@ -147,7 +147,7 @@ if __name__ == "__main__": # pragma: no cover
|
|
147
147
|
app = QApplication(sys.argv)
|
148
148
|
app.setApplicationName("Jupyter Console")
|
149
149
|
app.setApplicationDisplayName("Jupyter Console")
|
150
|
-
|
150
|
+
apply_theme("dark")
|
151
151
|
icon = QIcon()
|
152
152
|
icon.addFile(os.path.join(module_path, "assets", "terminal_icon.png"), size=QSize(48, 48))
|
153
153
|
app.setWindowIcon(icon)
|
bec_widgets/qt_utils/toolbar.py
CHANGED
@@ -26,7 +26,9 @@ class ModularToolBar(QToolBar):
|
|
26
26
|
color (str, optional): The background color of the toolbar. Defaults to "black".
|
27
27
|
"""
|
28
28
|
|
29
|
-
def __init__(
|
29
|
+
def __init__(
|
30
|
+
self, parent=None, actions=None, target_widget=None, color: str = "rgba(255, 255, 255, 0)"
|
31
|
+
):
|
30
32
|
super().__init__(parent)
|
31
33
|
|
32
34
|
self.widgets = defaultdict(dict)
|
bec_widgets/utils/colors.py
CHANGED
@@ -1,10 +1,37 @@
|
|
1
|
+
import itertools
|
1
2
|
import re
|
2
3
|
from typing import Literal
|
3
4
|
|
4
5
|
import numpy as np
|
5
6
|
import pyqtgraph as pg
|
7
|
+
import qdarkstyle
|
6
8
|
from pydantic_core import PydanticCustomError
|
9
|
+
from qdarkstyle import DarkPalette, LightPalette
|
7
10
|
from qtpy.QtGui import QColor
|
11
|
+
from qtpy.QtWidgets import QApplication
|
12
|
+
|
13
|
+
CURRENT_THEME = "dark"
|
14
|
+
|
15
|
+
|
16
|
+
def get_theme_palette():
|
17
|
+
return DarkPalette if CURRENT_THEME == "dark" else LightPalette
|
18
|
+
|
19
|
+
|
20
|
+
def apply_theme(theme: Literal["dark", "light"]):
|
21
|
+
global CURRENT_THEME
|
22
|
+
CURRENT_THEME = theme
|
23
|
+
|
24
|
+
app = QApplication.instance()
|
25
|
+
# go through all pyqtgraph widgets and set background
|
26
|
+
children = itertools.chain.from_iterable(
|
27
|
+
top.findChildren(pg.GraphicsLayoutWidget) for top in app.topLevelWidgets()
|
28
|
+
)
|
29
|
+
for pg_widget in children:
|
30
|
+
pg_widget.setBackground("k" if theme == "dark" else "w")
|
31
|
+
|
32
|
+
# now define stylesheet according to theme and apply it
|
33
|
+
style = qdarkstyle.load_stylesheet(palette=get_theme_palette())
|
34
|
+
app.setStyleSheet(style)
|
8
35
|
|
9
36
|
|
10
37
|
class Colors:
|
@@ -9,12 +9,12 @@ from collections import defaultdict
|
|
9
9
|
from dataclasses import dataclass
|
10
10
|
from typing import TYPE_CHECKING
|
11
11
|
|
12
|
-
import qdarktheme
|
13
12
|
from bec_lib.utils.import_utils import lazy_import_from
|
14
13
|
from qtpy.QtCore import QObject, QTimer, Signal, Slot
|
15
14
|
from qtpy.QtWidgets import QHBoxLayout, QTreeWidget, QTreeWidgetItem, QWidget
|
16
15
|
|
17
16
|
from bec_widgets.utils.bec_connector import BECConnector
|
17
|
+
from bec_widgets.utils.colors import apply_theme
|
18
18
|
from bec_widgets.widgets.bec_status_box.status_item import StatusItem
|
19
19
|
|
20
20
|
if TYPE_CHECKING:
|
@@ -306,7 +306,7 @@ def main():
|
|
306
306
|
from qtpy.QtWidgets import QApplication
|
307
307
|
|
308
308
|
app = QApplication(sys.argv)
|
309
|
-
|
309
|
+
apply_theme("dark")
|
310
310
|
main_window = BECStatusBox()
|
311
311
|
main_window.show()
|
312
312
|
sys.exit(app.exec())
|
@@ -9,6 +9,7 @@ from qtpy.QtWidgets import QDoubleSpinBox, QVBoxLayout, QWidget
|
|
9
9
|
|
10
10
|
from bec_widgets.utils import UILoader
|
11
11
|
from bec_widgets.utils.bec_connector import BECConnector
|
12
|
+
from bec_widgets.utils.colors import apply_theme
|
12
13
|
|
13
14
|
|
14
15
|
class DeviceBox(BECConnector, QWidget):
|
@@ -186,11 +187,10 @@ class DeviceBox(BECConnector, QWidget):
|
|
186
187
|
if __name__ == "__main__": # pragma: no cover
|
187
188
|
import sys
|
188
189
|
|
189
|
-
import qdarktheme
|
190
190
|
from qtpy.QtWidgets import QApplication
|
191
191
|
|
192
192
|
app = QApplication(sys.argv)
|
193
|
-
|
193
|
+
apply_theme("light")
|
194
194
|
widget = DeviceBox(device="samx")
|
195
195
|
|
196
196
|
widget.show()
|
@@ -7,13 +7,13 @@ from typing import Literal, Optional
|
|
7
7
|
|
8
8
|
import numpy as np
|
9
9
|
import pyqtgraph as pg
|
10
|
-
import qdarktheme
|
11
10
|
from pydantic import Field, ValidationError, field_validator
|
12
11
|
from qtpy.QtCore import Signal as pyqtSignal
|
13
12
|
from qtpy.QtWidgets import QWidget
|
14
13
|
from typeguard import typechecked
|
15
14
|
|
16
15
|
from bec_widgets.utils import BECConnector, ConnectionConfig, WidgetContainerUtils
|
16
|
+
from bec_widgets.utils.colors import apply_theme
|
17
17
|
from bec_widgets.widgets.figure.plots.image.image import BECImageShow, ImageConfig
|
18
18
|
from bec_widgets.widgets.figure.plots.motor_map.motor_map import BECMotorMap, MotorMapConfig
|
19
19
|
from bec_widgets.widgets.figure.plots.plot_base import BECPlotBase, SubplotConfig
|
@@ -670,9 +670,8 @@ class BECFigure(BECConnector, pg.GraphicsLayoutWidget):
|
|
670
670
|
Args:
|
671
671
|
theme(Literal["dark","light"]): The theme to set for the figure widget.
|
672
672
|
"""
|
673
|
-
qdarktheme.setup_theme(theme)
|
674
|
-
self.setBackground("k" if theme == "dark" else "w")
|
675
673
|
self.config.theme = theme
|
674
|
+
apply_theme(theme)
|
676
675
|
for plot in self.widget_list:
|
677
676
|
plot.set_x_label(plot.plot_item.getAxis("bottom").label.toPlainText())
|
678
677
|
plot.set_y_label(plot.plot_item.getAxis("left").label.toPlainText())
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import os
|
2
2
|
|
3
|
-
import qdarktheme
|
4
3
|
from qtpy.QtCore import Slot
|
5
4
|
from qtpy.QtWidgets import QVBoxLayout, QWidget
|
6
5
|
|
7
6
|
from bec_widgets.utils import UILoader
|
7
|
+
from bec_widgets.utils.colors import apply_theme
|
8
8
|
from bec_widgets.utils.widget_io import WidgetIO
|
9
9
|
|
10
10
|
|
@@ -55,7 +55,7 @@ if __name__ == "__main__":
|
|
55
55
|
from qtpy.QtWidgets import QApplication
|
56
56
|
|
57
57
|
app = QApplication(sys.argv)
|
58
|
-
|
58
|
+
apply_theme("dark")
|
59
59
|
window = AxisSettings()
|
60
60
|
window.show()
|
61
61
|
sys.exit(app.exec_())
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import qdarktheme
|
2
1
|
from bec_lib.endpoints import MessageEndpoints
|
3
2
|
from qtpy.QtWidgets import (
|
4
3
|
QApplication,
|
@@ -12,6 +11,7 @@ from qtpy.QtWidgets import (
|
|
12
11
|
)
|
13
12
|
|
14
13
|
from bec_widgets.utils import BECConnector
|
14
|
+
from bec_widgets.utils.colors import apply_theme
|
15
15
|
from bec_widgets.widgets.scan_control.scan_group_box import ScanGroupBox
|
16
16
|
from bec_widgets.widgets.stop_button.stop_button import StopButton
|
17
17
|
|
@@ -206,7 +206,7 @@ if __name__ == "__main__": # pragma: no cover
|
|
206
206
|
app = QApplication([])
|
207
207
|
scan_control = ScanControl()
|
208
208
|
|
209
|
-
|
209
|
+
apply_theme("dark")
|
210
210
|
window = scan_control
|
211
211
|
window.show()
|
212
212
|
app.exec()
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import sys
|
2
2
|
|
3
3
|
import numpy as np
|
4
|
-
import qdarktheme
|
5
4
|
from qtpy.QtCore import QRect, Qt, QTimer
|
6
5
|
from qtpy.QtGui import QColor, QPainter, QPen
|
7
6
|
from qtpy.QtWidgets import QApplication, QMainWindow, QWidget
|
8
7
|
|
8
|
+
from bec_widgets.utils.colors import get_theme_palette
|
9
|
+
|
9
10
|
|
10
11
|
def ease_in_out_sine(t):
|
11
12
|
return 1 - np.sin(np.pi * t)
|
@@ -52,9 +53,9 @@ class SpinnerWidget(QWidget):
|
|
52
53
|
background_color = QColor(200, 200, 200, 50)
|
53
54
|
line_width = 5
|
54
55
|
|
55
|
-
color_palette =
|
56
|
+
color_palette = get_theme_palette()
|
56
57
|
|
57
|
-
color = QColor(color_palette.
|
58
|
+
color = QColor(color_palette.COLOR_ACCENT_4)
|
58
59
|
|
59
60
|
rect.adjust(line_width, line_width, -line_width, -line_width)
|
60
61
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: bec_widgets
|
3
|
-
Version: 0.83.
|
3
|
+
Version: 0.83.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
|
@@ -14,9 +14,9 @@ Requires-Dist: bec-lib~=2.16
|
|
14
14
|
Requires-Dist: black~=24.0
|
15
15
|
Requires-Dist: isort>=5.13.2,~=5.13
|
16
16
|
Requires-Dist: pydantic~=2.0
|
17
|
-
Requires-Dist: pyqtdarktheme~=2.1
|
18
17
|
Requires-Dist: pyqtgraph~=0.13
|
19
18
|
Requires-Dist: pyte
|
19
|
+
Requires-Dist: qdarkstyle>=3.2.2
|
20
20
|
Requires-Dist: qtconsole>=5.5.1,~=5.5
|
21
21
|
Requires-Dist: qtpy~=2.4
|
22
22
|
Provides-Extra: dev
|
@@ -2,11 +2,11 @@
|
|
2
2
|
.gitlab-ci.yml,sha256=zvb4A6QI5lQTsdfI5nPPL-tUNfcrz__SQjxW03QZ5Ek,8204
|
3
3
|
.pylintrc,sha256=eeY8YwSI74oFfq6IYIbCqnx3Vk8ZncKaatv96n_Y8Rs,18544
|
4
4
|
.readthedocs.yaml,sha256=aSOc277LqXcsTI6lgvm_JY80lMlr69GbPKgivua2cS0,603
|
5
|
-
CHANGELOG.md,sha256=
|
5
|
+
CHANGELOG.md,sha256=XIRZNOiAJ6U-HWIqQIZQrJ-seB-mrY8_bRoAA-QMH6w,6629
|
6
6
|
LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
|
7
|
-
PKG-INFO,sha256=
|
7
|
+
PKG-INFO,sha256=DQQ4PF3OQf7ROCg2O2cIkgZoV2jsXd_1z6I-P2Z5Px0,1308
|
8
8
|
README.md,sha256=Od69x-RS85Hph0-WwWACwal4yUd67XkEn4APEfHhHFw,2649
|
9
|
-
pyproject.toml,sha256=
|
9
|
+
pyproject.toml,sha256=LyalVcXB0KNBOfUgjPnaHLv6kQFZCn7vvbFlnjZ_bnc,2357
|
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
|
@@ -25,7 +25,7 @@ bec_widgets/cli/rpc_wigdet_handler.py,sha256=6kQng2DyS6rhLJqSJ7xa0kdgSxp-35A2upc
|
|
25
25
|
bec_widgets/cli/server.py,sha256=FZkqsjUHIkCUFMKUFm7ls_eslXvhIFzLpINEYxeWP5s,7722
|
26
26
|
bec_widgets/examples/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
27
27
|
bec_widgets/examples/jupyter_console/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
28
|
-
bec_widgets/examples/jupyter_console/jupyter_console_window.py,sha256=
|
28
|
+
bec_widgets/examples/jupyter_console/jupyter_console_window.py,sha256=S6OTEp8i1sWRyfB9ZBhl64ZaqBvjonI9xqqtWv2Amp4,5540
|
29
29
|
bec_widgets/examples/jupyter_console/jupyter_console_window.ui,sha256=2A2mNTUMZBYygz8K4qWzrcjnNqZBMVyeHm26iLZVRWI,1473
|
30
30
|
bec_widgets/examples/plugin_example_pyside/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
31
31
|
bec_widgets/examples/plugin_example_pyside/main.py,sha256=xdC6RWSRt1rW8Prj0CsDeCPct6-_j3__oJmdgogB5PI,505
|
@@ -36,14 +36,14 @@ bec_widgets/examples/plugin_example_pyside/tictactoeplugin.py,sha256=BBt3MD8oDLU
|
|
36
36
|
bec_widgets/examples/plugin_example_pyside/tictactoetaskmenu.py,sha256=LNwplI6deUdKY6FOhUuWBanotxk9asF2G-6k7lFfA8Y,2301
|
37
37
|
bec_widgets/qt_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
38
38
|
bec_widgets/qt_utils/settings_dialog.py,sha256=rR_Zk4RGTnI4dz5OEzCc13lVpxlOKuwOf4_7wqXSbRw,3373
|
39
|
-
bec_widgets/qt_utils/toolbar.py,sha256=
|
39
|
+
bec_widgets/qt_utils/toolbar.py,sha256=UUvC_AwUW3d6MqAzRJIBBqNWLrvBQI9UvekJ9Dw1A-w,2142
|
40
40
|
bec_widgets/utils/__init__.py,sha256=1930ji1Jj6dVuY81Wd2kYBhHYNV-2R0bN_L4o9zBj1U,533
|
41
41
|
bec_widgets/utils/bec_connector.py,sha256=NypWbIrqb2ls3SIpflM6KihidV9fkroiJu2tQk6KwOA,9604
|
42
42
|
bec_widgets/utils/bec_designer.py,sha256=ak3G8FdojUPjVBBwdPXw7tN5P2Uxr-SSoQt394jXeAA,4308
|
43
43
|
bec_widgets/utils/bec_dispatcher.py,sha256=dghOw63Ql6rQ-zH1ZaYU6kT9Dg5kNDcZwEdu2YPBJeU,6150
|
44
44
|
bec_widgets/utils/bec_table.py,sha256=nA2b8ukSeUfquFMAxGrUVOqdrzMoDYD6O_4EYbOG2zk,717
|
45
45
|
bec_widgets/utils/bec_widget.py,sha256=eC7jhCqyABDf_wGbM6cCdtSF4__rpnVs2Ir1XzGHrCs,238
|
46
|
-
bec_widgets/utils/colors.py,sha256=
|
46
|
+
bec_widgets/utils/colors.py,sha256=RAGaA4jdvsFSxGlbhSBYL5mdlwS-9rq45tJM7U-7xXs,10587
|
47
47
|
bec_widgets/utils/container_utils.py,sha256=m3VUyAYmSWkEwApP9tBvKxPYVtc2kHw4toxIpMryJy4,1495
|
48
48
|
bec_widgets/utils/crosshair.py,sha256=SubY4FQCI6vUKsmMYGKHR7uYdGQJ6vhoYLuC1XlKS9I,9626
|
49
49
|
bec_widgets/utils/entry_validator.py,sha256=3skJIsUwTYicT76AMHm_M78RiWtUgyD2zb-Rxo2HdHQ,1313
|
@@ -68,7 +68,7 @@ bec_widgets/widgets/bec_queue/bec_queue.pyproject,sha256=VhoNmAv1DQUl9dg7dELyf5i
|
|
68
68
|
bec_widgets/widgets/bec_queue/bec_queue_plugin.py,sha256=hDJm8Zd_GIDw2R8VYn4ytwrHVCmJUjC9dGDMae2omU0,1175
|
69
69
|
bec_widgets/widgets/bec_queue/register_bec_queue.py,sha256=XnwtUSa1asK1b80knKWodcyX9qJy4DnKsQL_FoDfZy4,463
|
70
70
|
bec_widgets/widgets/bec_status_box/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
71
|
-
bec_widgets/widgets/bec_status_box/bec_status_box.py,sha256=
|
71
|
+
bec_widgets/widgets/bec_status_box/bec_status_box.py,sha256=3EunaSYlVemrrFsILfAacqTqaFIuNxnTd7mb_xrfi3k,13043
|
72
72
|
bec_widgets/widgets/bec_status_box/bec_status_box.pyproject,sha256=JWtx3Csfn2h7ODtk10HtyBNLf6tFIqyU6g04rMWOO1U,32
|
73
73
|
bec_widgets/widgets/bec_status_box/bec_status_box_plugin.py,sha256=CNFIETpkORLQ9J3l91jefiRLJs5Ru3nsWIPoUwaRbB0,1242
|
74
74
|
bec_widgets/widgets/bec_status_box/register_bec_status_box.py,sha256=EiQITnkNw7IU7hE776wAeXro97eZd9XlsB9essgCebE,481
|
@@ -81,7 +81,7 @@ bec_widgets/widgets/color_button/register_color_button.py,sha256=ZAx3t7G2VI2S-1q
|
|
81
81
|
bec_widgets/widgets/color_button/assets/color_button.png,sha256=dkjgGHSdxu98nM68O16fGpxBjxkkeLN8iu9M_8i5-NY,5618
|
82
82
|
bec_widgets/widgets/console/console.py,sha256=IW1OerycmS-cm8CKGFig44Qye8mxsmVcKvLHAc3lXco,17845
|
83
83
|
bec_widgets/widgets/device_box/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
84
|
-
bec_widgets/widgets/device_box/device_box.py,sha256=
|
84
|
+
bec_widgets/widgets/device_box/device_box.py,sha256=ofYQJLY02pitmAJG0Y3GWBg8txNmaJDWhQVe9KFQDYA,6938
|
85
85
|
bec_widgets/widgets/device_box/device_box.pyproject,sha256=jtwvhaySJRdnuV99mEZT3htmWKVLphFeetEW4al7s-o,28
|
86
86
|
bec_widgets/widgets/device_box/device_box.ui,sha256=z7j60J4ZKYjH9eyHl6FnZ_Z8lkdq1LQftxveSZQ6g_w,4865
|
87
87
|
bec_widgets/widgets/device_box/device_box_plugin.py,sha256=n7l3OIKqtQGsL86ygDekb0wb4bBySJXMUo58eTtKIdQ,1212
|
@@ -102,9 +102,9 @@ bec_widgets/widgets/dock/__init__.py,sha256=B7foHt02gnhM7mFksa7GJVwT7n0j_JvYDCt6
|
|
102
102
|
bec_widgets/widgets/dock/dock.py,sha256=joymi8NRoIuzuugUj9ccF9e1m57HwLQhhMmjaWiwTnM,7597
|
103
103
|
bec_widgets/widgets/dock/dock_area.py,sha256=WKIt61v7w2YXahfIL4nddWHPfpTpw52uphX4QCbS3q0,7913
|
104
104
|
bec_widgets/widgets/figure/__init__.py,sha256=3hGx_KOV7QHCYAV06aNuUgKq4QIYCjUTad-DrwkUaBM,44
|
105
|
-
bec_widgets/widgets/figure/figure.py,sha256=
|
105
|
+
bec_widgets/widgets/figure/figure.py,sha256=5N9GvUMwOOcQgIR78olVhXjIb0W64vIpG6_8WPcoNsc,32014
|
106
106
|
bec_widgets/widgets/figure/plots/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
107
|
-
bec_widgets/widgets/figure/plots/axis_settings.py,sha256=
|
107
|
+
bec_widgets/widgets/figure/plots/axis_settings.py,sha256=CCvJwo1RjpnLJG9TmGqf9fyPpUNyLT8k7pPEnqVuaGM,2281
|
108
108
|
bec_widgets/widgets/figure/plots/axis_settings.ui,sha256=zMKZK6lH_3KJGO4RA_paXAH7UzZJ4Snlil3MK4pK3L8,11589
|
109
109
|
bec_widgets/widgets/figure/plots/plot_base.py,sha256=7kPcUfC_Ub795DfUHdnIWccqjkrRSuE0AJ53wodbg-U,10420
|
110
110
|
bec_widgets/widgets/figure/plots/image/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -139,11 +139,11 @@ bec_widgets/widgets/ring_progress_bar/__init__.py,sha256=_uoJKnDM2YAeUBfwc5WLbIH
|
|
139
139
|
bec_widgets/widgets/ring_progress_bar/ring.py,sha256=19zFj-6ZrIPLXYqvs5EPcrmDWnfnSLlEOmzJffL4d3A,11241
|
140
140
|
bec_widgets/widgets/ring_progress_bar/ring_progress_bar.py,sha256=sU4Dur2XzBVfDYAYazI6pjOZOhzggoQIuc9VD3PWgac,24073
|
141
141
|
bec_widgets/widgets/scan_control/__init__.py,sha256=IOfHl15vxb_uC6KN62-PeUzbBha_vQyqkkXbJ2HU674,38
|
142
|
-
bec_widgets/widgets/scan_control/scan_control.py,sha256=
|
142
|
+
bec_widgets/widgets/scan_control/scan_control.py,sha256=Jhr3kUaA_pd_80YK8UlPqoYk0MI-N4RfWXZM3J6uT-8,7709
|
143
143
|
bec_widgets/widgets/scan_control/scan_group_box.py,sha256=wrrJLfI0apfll0NKpqM8ymlbl5NaqA9cKNgyfVdYR00,7420
|
144
144
|
bec_widgets/widgets/spinner/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
145
145
|
bec_widgets/widgets/spinner/register_spinner_widget.py,sha256=_zCPjLh4M7NTSHP1Atdn6yu33zJ3LJkcBy3KOJ5eSVY,476
|
146
|
-
bec_widgets/widgets/spinner/spinner.py,sha256=
|
146
|
+
bec_widgets/widgets/spinner/spinner.py,sha256=6q2r6y9ISGc-PRFVTd0RhLu_-G7tftZs7CXQ-uRKT1U,2495
|
147
147
|
bec_widgets/widgets/spinner/spinner_widget.pyproject,sha256=zzLajGB3DTgVnrSqMey2jRpBlxTq9cBXZL9tWJCKe-I,25
|
148
148
|
bec_widgets/widgets/spinner/spinner_widget_plugin.py,sha256=ZcG1QIwpbriapM5ZrR4gQ-WA2a7ARhsstk8EIY-OGTU,1187
|
149
149
|
bec_widgets/widgets/stop_button/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -218,10 +218,10 @@ tests/end-2-end/test_bec_dock_rpc_e2e.py,sha256=uDhauuLEWg9Baf3N1KSeq6HPUWtuU6a9
|
|
218
218
|
tests/end-2-end/test_bec_figure_rpc_e2e.py,sha256=mjg29huqTivLnukG_XyoMtjOy2P_7JACIhMEzahLXb8,6601
|
219
219
|
tests/end-2-end/test_rpc_register_e2e.py,sha256=blhMiW7HVHX1kGm5dg8Sv0PeCuJ0gnBz3evznQFz_B8,1619
|
220
220
|
tests/end-2-end/test_scan_control_e2e.py,sha256=u7oLgFyltkMW2apSZKDukMIXvYrbhHrU32p4mBdn8VE,2276
|
221
|
-
tests/references/SpinnerWidget/SpinnerWidget_darwin.png,sha256
|
222
|
-
tests/references/SpinnerWidget/SpinnerWidget_linux.png,sha256
|
223
|
-
tests/references/SpinnerWidget/SpinnerWidget_started_darwin.png,sha256=
|
224
|
-
tests/references/SpinnerWidget/SpinnerWidget_started_linux.png,sha256=
|
221
|
+
tests/references/SpinnerWidget/SpinnerWidget_darwin.png,sha256=OyiGxyQx0XCKEa1OeAZFVfFXHAllBDOjsvyTA_dDmoc,8353
|
222
|
+
tests/references/SpinnerWidget/SpinnerWidget_linux.png,sha256=OyiGxyQx0XCKEa1OeAZFVfFXHAllBDOjsvyTA_dDmoc,8353
|
223
|
+
tests/references/SpinnerWidget/SpinnerWidget_started_darwin.png,sha256=NA7dOdKY-leFv8JI_5x3OIIY-XlSXSTIflVquz0UUZc,13784
|
224
|
+
tests/references/SpinnerWidget/SpinnerWidget_started_linux.png,sha256=NA7dOdKY-leFv8JI_5x3OIIY-XlSXSTIflVquz0UUZc,13784
|
225
225
|
tests/unit_tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
226
226
|
tests/unit_tests/client_mocks.py,sha256=_gtf12kTxmwaXKwSOG5Cc0dqVEY1PHi-hmqdTdLhLTk,4752
|
227
227
|
tests/unit_tests/conftest.py,sha256=KrnktXPWmZhnKNue-xGWOLD1XGEvdz9Vf7V2eO3XQ3A,596
|
@@ -251,7 +251,7 @@ tests/unit_tests/test_rpc_widget_handler.py,sha256=ceQ3BPnBIFY2Hy-sDPw0wxxREVTTp
|
|
251
251
|
tests/unit_tests/test_scan_control.py,sha256=Wr6KcE8av4sEIOx5VgYbzVCem3Jgb4Kzx_oOuvwlmkE,13459
|
252
252
|
tests/unit_tests/test_scan_control_group_box.py,sha256=HNqjP10B_NonikspNwKz9upJU-t7xf6hwBerNhbC-uo,5563
|
253
253
|
tests/unit_tests/test_setting_dialog.py,sha256=QbHWwLa1VGFwYie-SN3rjS3ICo7A44S4AKN2qeNvIKY,3137
|
254
|
-
tests/unit_tests/test_spinner.py,sha256=
|
254
|
+
tests/unit_tests/test_spinner.py,sha256=DshxDw1eKNsgMCgt7QKtXPOq-_Uz3OPwiFnqYepSFXU,794
|
255
255
|
tests/unit_tests/test_stop_button.py,sha256=tpQanzBUyl7qLXjbMUQqm3U3vShbKKARcnLpgsu3P0E,789
|
256
256
|
tests/unit_tests/test_text_box_widget.py,sha256=cT0uEHt_6d-FwST0A_wE9sFW9E3F_nJbKhuBAeU4yHg,1862
|
257
257
|
tests/unit_tests/test_toggle.py,sha256=Amzgres7te0tTQIDR2WMKSx9Kce44TxMpIPR6HZygXQ,832
|
@@ -265,8 +265,8 @@ tests/unit_tests/test_configs/config_device_no_entry.yaml,sha256=hdvue9KLc_kfNzG
|
|
265
265
|
tests/unit_tests/test_configs/config_scan.yaml,sha256=vo484BbWOjA_e-h6bTjSV9k7QaQHrlAvx-z8wtY-P4E,1915
|
266
266
|
tests/unit_tests/test_msgs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
267
267
|
tests/unit_tests/test_msgs/available_scans_message.py,sha256=m_z97hIrjHXXMa2Ex-UvsPmTxOYXfjxyJaGkIY6StTY,46532
|
268
|
-
bec_widgets-0.83.
|
269
|
-
bec_widgets-0.83.
|
270
|
-
bec_widgets-0.83.
|
271
|
-
bec_widgets-0.83.
|
272
|
-
bec_widgets-0.83.
|
268
|
+
bec_widgets-0.83.1.dist-info/METADATA,sha256=DQQ4PF3OQf7ROCg2O2cIkgZoV2jsXd_1z6I-P2Z5Px0,1308
|
269
|
+
bec_widgets-0.83.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
270
|
+
bec_widgets-0.83.1.dist-info/entry_points.txt,sha256=3otEkCdDB9LZJuBLzG4pFLK5Di0CVybN_12IsZrQ-58,166
|
271
|
+
bec_widgets-0.83.1.dist-info/licenses/LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
|
272
|
+
bec_widgets-0.83.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.83.
|
7
|
+
version = "0.83.1"
|
8
8
|
description = "BEC Widgets"
|
9
9
|
requires-python = ">=3.10"
|
10
10
|
classifiers = [
|
@@ -19,7 +19,7 @@ dependencies = [
|
|
19
19
|
"isort~=5.13, >=5.13.2", # needed for bw-generate-cli
|
20
20
|
"pydantic~=2.0",
|
21
21
|
"pyqtgraph~=0.13",
|
22
|
-
"
|
22
|
+
"qdarkstyle>=3.2.2",
|
23
23
|
"qtconsole~=5.5, >=5.5.1", # needed for jupyter console
|
24
24
|
"qtpy~=2.4",
|
25
25
|
"pyte", # needed for vt100 console
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
tests/unit_tests/test_spinner.py
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
import pytest
|
2
|
-
import qdarktheme
|
3
2
|
|
3
|
+
from bec_widgets.utils.colors import apply_theme
|
4
4
|
from bec_widgets.utils.reference_utils import snap_and_compare
|
5
5
|
from bec_widgets.widgets.spinner.spinner import SpinnerWidget
|
6
6
|
|
7
7
|
|
8
8
|
@pytest.fixture
|
9
9
|
def spinner_widget(qtbot):
|
10
|
-
|
10
|
+
apply_theme("light")
|
11
11
|
spinner = SpinnerWidget()
|
12
12
|
qtbot.addWidget(spinner)
|
13
13
|
qtbot.waitExposed(spinner)
|
File without changes
|
File without changes
|
File without changes
|