bec-widgets 0.51.0__py3-none-any.whl → 0.52.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.
- bec_widgets/cli/__init__.py +1 -1
- bec_widgets/cli/bec_widgets_icon.png +0 -0
- bec_widgets/cli/client.py +328 -5
- bec_widgets/cli/client_utils.py +17 -5
- bec_widgets/cli/generate_cli.py +7 -3
- bec_widgets/cli/rpc_register.py +4 -0
- bec_widgets/cli/rpc_wigdet_handler.py +27 -0
- bec_widgets/cli/server.py +34 -9
- bec_widgets/examples/jupyter_console/jupyter_console_window.py +54 -2
- bec_widgets/examples/jupyter_console/jupyter_console_window.ui +26 -2
- bec_widgets/examples/jupyter_console/terminal_icon.png +0 -0
- bec_widgets/utils/__init__.py +1 -0
- bec_widgets/utils/bec_connector.py +18 -3
- bec_widgets/utils/bec_table.py +1 -0
- bec_widgets/utils/container_utils.py +3 -0
- bec_widgets/utils/crosshair.py +1 -0
- bec_widgets/utils/entry_validator.py +2 -0
- bec_widgets/utils/layout_manager.py +121 -0
- bec_widgets/utils/widget_io.py +5 -0
- bec_widgets/utils/yaml_dialog.py +2 -0
- bec_widgets/validation/monitor_config_validator.py +2 -1
- bec_widgets/widgets/__init__.py +1 -0
- bec_widgets/widgets/dock/__init__.py +2 -0
- bec_widgets/widgets/dock/dock.py +269 -0
- bec_widgets/widgets/dock/dock_area.py +225 -0
- bec_widgets/widgets/figure/figure.py +45 -16
- bec_widgets/widgets/plots/__init__.py +1 -1
- bec_widgets/widgets/plots/image.py +46 -9
- bec_widgets/widgets/plots/motor_map.py +17 -3
- bec_widgets/widgets/plots/plot_base.py +14 -3
- bec_widgets/widgets/plots/waveform.py +37 -10
- bec_widgets/widgets/scan_control/scan_control.py +10 -2
- bec_widgets/widgets/toolbar/toolbar.py +1 -0
- {bec_widgets-0.51.0.dist-info → bec_widgets-0.52.1.dist-info}/METADATA +1 -1
- {bec_widgets-0.51.0.dist-info → bec_widgets-0.52.1.dist-info}/RECORD +46 -40
- tests/end-2-end/conftest.py +19 -4
- tests/end-2-end/test_bec_dock_rpc_e2e.py +145 -0
- tests/end-2-end/test_bec_figure_rpc_e2e.py +17 -17
- tests/end-2-end/test_rpc_register_e2e.py +3 -3
- tests/unit_tests/test_bec_dock.py +114 -0
- tests/unit_tests/test_bec_figure.py +20 -22
- tests/unit_tests/test_generate_cli_client.py +1 -1
- tests/unit_tests/test_waveform1d.py +1 -1
- bec_widgets/simulations/__init__.py +0 -0
- bec_widgets/utils/ctrl_c.py +0 -39
- {bec_widgets-0.51.0.dist-info → bec_widgets-0.52.1.dist-info}/LICENSE +0 -0
- {bec_widgets-0.51.0.dist-info → bec_widgets-0.52.1.dist-info}/WHEEL +0 -0
- {bec_widgets-0.51.0.dist-info → bec_widgets-0.52.1.dist-info}/top_level.txt +0 -0
bec_widgets/utils/ctrl_c.py
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
# TODO haven't found yet how to deal with QAbstractSocket in qtpy
|
2
|
-
# import signal
|
3
|
-
# import socket
|
4
|
-
# from PyQt5.QtNetwork import QAbstractSocket
|
5
|
-
#
|
6
|
-
#
|
7
|
-
# def setup(app):
|
8
|
-
# app.signalwatchdog = SignalWatchdog() # need to store to keep socket pair alive
|
9
|
-
# signal.signal(signal.SIGINT, make_quit_handler(app))
|
10
|
-
#
|
11
|
-
#
|
12
|
-
# def make_quit_handler(app):
|
13
|
-
# def handler(*args):
|
14
|
-
# print() # make ^C appear on its own line
|
15
|
-
# app.quit()
|
16
|
-
#
|
17
|
-
# return handler
|
18
|
-
#
|
19
|
-
#
|
20
|
-
# class SignalWatchdog(QAbstractSocket):
|
21
|
-
# def __init__(self):
|
22
|
-
# """
|
23
|
-
# Propagates system signals from Python to QEventLoop
|
24
|
-
# adapted from https://stackoverflow.com/a/65802260/655404
|
25
|
-
# """
|
26
|
-
# super().__init__(QAbstractSocket.SctpSocket, None)
|
27
|
-
#
|
28
|
-
# self.writer, self.reader = writer, reader = socket.socketpair()
|
29
|
-
# writer.setblocking(False)
|
30
|
-
#
|
31
|
-
# fd_writer = writer.fileno()
|
32
|
-
# fd_reader = reader.fileno()
|
33
|
-
#
|
34
|
-
# signal.set_wakeup_fd(fd_writer) # Python hook
|
35
|
-
# self.setSocketDescriptor(fd_reader) # Qt hook
|
36
|
-
#
|
37
|
-
# self.readyRead.connect(
|
38
|
-
# lambda: None
|
39
|
-
# ) # dummy function call that lets the Python interpreter run
|
File without changes
|
File without changes
|
File without changes
|