pycontrol-gui 3.0.0b1__tar.gz → 3.0.0b2__tar.gz

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.
Files changed (182) hide show
  1. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/PKG-INFO +1 -1
  2. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/docs/changelog.md +4 -0
  3. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/pyproject.toml +1 -1
  4. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/main_window.py +2 -1
  5. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/session_helpers.py +4 -3
  6. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/experiment_run_plots.py +6 -33
  7. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/experiment_run_view.py +179 -78
  8. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/experiments_tab.py +3 -1
  9. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/keyboard_shortcuts_dialog.py +1 -1
  10. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/run_task_tab.py +7 -25
  11. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/session_controls_shell.py +3 -0
  12. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/settings_dialog.py +0 -6
  13. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/setups_tab.py +13 -105
  14. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/subject_run_panel.py +178 -12
  15. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_experiment_run_plots.py +9 -4
  16. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_experiment_run_view.py +435 -35
  17. pycontrol_gui-3.0.0b2/tests/test_main_window_shortcuts.py +63 -0
  18. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_session_controller.py +9 -4
  19. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_setups_tab.py +43 -0
  20. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/.gitignore +0 -0
  21. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/.python-version +0 -0
  22. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/CONTRIBUTING.md +0 -0
  23. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/LICENSE.txt +0 -0
  24. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/README.md +0 -0
  25. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/docs/addons.md +0 -0
  26. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/docs/architecture.md +0 -0
  27. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/docs/maintainability.md +0 -0
  28. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/docs/plot-addons.md +0 -0
  29. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/docs/task-controls.md +0 -0
  30. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/docs/task-sharing.md +0 -0
  31. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/__init__.py +0 -0
  32. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/__main__.py +0 -0
  33. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/app.py +0 -0
  34. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/app_settings.py +0 -0
  35. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/bus_adapter.py +0 -0
  36. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/error_logging.py +0 -0
  37. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/experiment_handlers.py +0 -0
  38. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/gui_gc.py +0 -0
  39. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/persistent_variables.py +0 -0
  40. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/plotting/__init__.py +0 -0
  41. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/plotting/base.py +0 -0
  42. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/plotting/default_plotter.py +0 -0
  43. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/plotting/host.py +0 -0
  44. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/plotting/loader.py +0 -0
  45. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/plotting/profiling.py +0 -0
  46. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/plotting/widgets/__init__.py +0 -0
  47. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/plotting/widgets/analog_plot.py +0 -0
  48. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/plotting/widgets/events_plot.py +0 -0
  49. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/plotting/widgets/states_plot.py +0 -0
  50. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/__init__.py +0 -0
  51. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/add.svg +0 -0
  52. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/bar-graph.svg +0 -0
  53. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/book.svg +0 -0
  54. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/circle-arrow-up_white.svg +0 -0
  55. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/close.svg +0 -0
  56. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/close_white.svg +0 -0
  57. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/collapse.svg +0 -0
  58. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/connect.svg +0 -0
  59. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/delete.svg +0 -0
  60. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/detach.svg +0 -0
  61. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/disconnect.svg +0 -0
  62. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/down.svg +0 -0
  63. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/edit.svg +0 -0
  64. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/enable.svg +0 -0
  65. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/expand.svg +0 -0
  66. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/filter.svg +0 -0
  67. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/folder.svg +0 -0
  68. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/funnel.svg +0 -0
  69. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/github.svg +0 -0
  70. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/help.svg +0 -0
  71. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/info.svg +0 -0
  72. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/keyboard.svg +0 -0
  73. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/left.svg +0 -0
  74. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/logo.svg +0 -0
  75. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/mount.svg +0 -0
  76. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/pause.svg +0 -0
  77. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/play.svg +0 -0
  78. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/play_white.svg +0 -0
  79. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/record_white.svg +0 -0
  80. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/refresh.svg +0 -0
  81. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/remove.svg +0 -0
  82. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/right.svg +0 -0
  83. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/run_white.svg +0 -0
  84. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/save.svg +0 -0
  85. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/save_as.svg +0 -0
  86. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/settings.svg +0 -0
  87. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/share.svg +0 -0
  88. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/stop_white.svg +0 -0
  89. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/trash.svg +0 -0
  90. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/up.svg +0 -0
  91. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/warning.svg +0 -0
  92. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/resources/icons/wrench.svg +0 -0
  93. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/sandbox_session.py +0 -0
  94. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/session_controller.py +0 -0
  95. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/session_runtime.py +0 -0
  96. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/setup_maintenance.py +0 -0
  97. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/task_variables.py +0 -0
  98. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/update_check.py +0 -0
  99. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/__init__.py +0 -0
  100. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/about_dialog.py +0 -0
  101. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/controls_dialog.py +0 -0
  102. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/controls_dialog_editor.py +0 -0
  103. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/controls_host.py +0 -0
  104. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/controls_mount_controller.py +0 -0
  105. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/controls_spec.py +0 -0
  106. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/error_log_dialog.py +0 -0
  107. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/experiment_editor_rows.py +0 -0
  108. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/experiment_editor_state.py +0 -0
  109. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/experiment_editor_table.py +0 -0
  110. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/experiment_run_actions.py +0 -0
  111. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/experiment_run_models.py +0 -0
  112. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/experiment_run_outcomes.py +0 -0
  113. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/experiment_run_preflight.py +0 -0
  114. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/experiment_run_summary.py +0 -0
  115. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/experiment_subject_table.py +0 -0
  116. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/experiment_variable_values.py +0 -0
  117. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/experiment_variables_table.py +0 -0
  118. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/file_tree.py +0 -0
  119. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/hwdef_selector.py +0 -0
  120. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/log_filter_controller.py +0 -0
  121. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/log_view.py +0 -0
  122. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/sandbox_dialog.py +0 -0
  123. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/session_event_ui.py +0 -0
  124. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/session_panel.py +0 -0
  125. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/session_shutdown_ui.py +0 -0
  126. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/session_task_binding.py +0 -0
  127. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/setup_variables_dialog.py +0 -0
  128. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/setups_table.py +0 -0
  129. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/share_dialog.py +0 -0
  130. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/style.py +0 -0
  131. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/task_selector_widgets.py +0 -0
  132. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/task_status.py +0 -0
  133. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/widgets/welcome_dialog.py +0 -0
  134. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/workspace_model.py +0 -0
  135. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/src/pycontrol_gui/workspace_snapshot.py +0 -0
  136. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/CLASSIFICATION.md +0 -0
  137. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/__init__.py +0 -0
  138. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/conftest.py +0 -0
  139. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/fixtures/controls/LED_controls.json +0 -0
  140. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/fixtures/controls/LED_controlz.json +0 -0
  141. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/fixtures/controls/blinker_gui.json +0 -0
  142. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/fixtures/controls/wheel_controls.json +0 -0
  143. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/support/__init__.py +0 -0
  144. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/support/core_events.py +0 -0
  145. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_app.py +0 -0
  146. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_bus_adapter.py +0 -0
  147. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_controls_dialog.py +0 -0
  148. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_controls_editor_round_trip.py +0 -0
  149. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_core_import_surface.py +0 -0
  150. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_error_log_dialog.py +0 -0
  151. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_error_logging.py +0 -0
  152. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_experiment_editor_state.py +0 -0
  153. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_experiment_run_actions.py +0 -0
  154. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_experiment_run_end_to_end.py +0 -0
  155. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_experiment_run_preflight.py +0 -0
  156. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_experiment_subject_hwdef.py +0 -0
  157. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_experiment_variable_values.py +0 -0
  158. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_experiments_tab.py +0 -0
  159. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_gui_gc.py +0 -0
  160. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_log_view.py +0 -0
  161. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_model_view_widgets.py +0 -0
  162. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_persistent_variables.py +0 -0
  163. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_plotting_loader.py +0 -0
  164. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_plotting_widgets.py +0 -0
  165. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_run_task_tab.py +0 -0
  166. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_session_event_ui.py +0 -0
  167. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_session_helpers.py +0 -0
  168. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_session_runtime.py +0 -0
  169. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_settings_dialog.py +0 -0
  170. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_setup_maintenance.py +0 -0
  171. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_share_dialog.py +0 -0
  172. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_smoke.py +0 -0
  173. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_task_status_widget.py +0 -0
  174. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_task_variables.py +0 -0
  175. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_update_check.py +0 -0
  176. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_welcome_dialog.py +0 -0
  177. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_workspace_model.py +0 -0
  178. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tests/test_workspace_snapshot.py +0 -0
  179. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tools/check_wheels.py +0 -0
  180. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tools/run_tests.py +0 -0
  181. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/tools/smoke_installed.py +0 -0
  182. {pycontrol_gui-3.0.0b1 → pycontrol_gui-3.0.0b2}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: pycontrol-gui
3
- Version: 3.0.0b1
3
+ Version: 3.0.0b2
4
4
  Summary: Qt desktop frontend for pycontrol-core.
5
5
  Author: Karpova Lab contributors
6
6
  License: GPL-3.0-or-later
@@ -73,6 +73,10 @@ Operators:
73
73
 
74
74
  - A forced shutdown (a worker that does not stop in time) disconnects every
75
75
  controller signal; four were left connected.
76
+ - Keyboard shortcuts work on Windows: the Run task tab's Space, T, U,
77
+ Ctrl+Shift+T and Ctrl+Shift+H, and the Experiments tab's Ctrl+S, fire while
78
+ focus is on the tab bar, and Settings is Ctrl+, (it was bound to a dedicated
79
+ Settings key that most keyboards lack).
76
80
 
77
81
  ### Removed
78
82
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "pycontrol-gui"
7
- version = "3.0.0b1"
7
+ version = "3.0.0b2"
8
8
  description = "Qt desktop frontend for pycontrol-core."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"
@@ -355,7 +355,8 @@ class MainWindow(QMainWindow):
355
355
  self.tools_menu = menu.addMenu("Tools")
356
356
  self.settings_action = QAction("Settings...", self)
357
357
  self.settings_action.setIcon(icon("settings"))
358
- self.settings_action.setShortcut(QKeySequence.StandardKey.Preferences)
358
+ # StandardKey.Preferences is Cmd+, on macOS but the rare dedicated Settings key elsewhere.
359
+ self.settings_action.setShortcut(QKeySequence("Ctrl+,"))
359
360
  self.settings_action.setMenuRole(QAction.MenuRole.PreferencesRole)
360
361
  self.settings_action.triggered.connect(self._show_settings_dialog)
361
362
  self.tools_menu.addAction(self.settings_action)
@@ -60,9 +60,10 @@ def board_file_lines(session: BoardSession, root: str) -> list[str]:
60
60
  entry for entry in entries if entry != "__init__.py" and entry.endswith(".py") and entry[:-3].isidentifier()
61
61
  ]
62
62
  invalid_count = len(entries) - len(devices) - int("__init__.py" in entries)
63
- lines = [f"{device} *" if device in _CORE_DEVICE_NAMES else device for device in devices] or ["(empty)"]
64
- if any(device in _CORE_DEVICE_NAMES for device in devices):
65
- lines.append("* bundled core device")
63
+ bundled = [device for device in devices if device in _CORE_DEVICE_NAMES]
64
+ workspace = [device for device in devices if device not in _CORE_DEVICE_NAMES]
65
+ lines = ["Bundled:", *(f" {device}" for device in bundled or ["(empty)"])]
66
+ lines.extend(["Workspace:", *(f" {device}" for device in workspace or ["(empty)"])])
66
67
  if invalid_count:
67
68
  lines.append(f"Warning: ignored {invalid_count} invalid entries; board flash may be corrupt.")
68
69
  return lines
@@ -136,10 +136,10 @@ class DetachableTabWidget(QTabWidget):
136
136
  window.show()
137
137
  window.raise_()
138
138
  window.activateWindow()
139
- QTimer.singleShot(0, widget.update)
139
+ QTimer.singleShot(0, widget, widget.update)
140
140
  updater = getattr(widget, "update_plot", None)
141
141
  if callable(updater):
142
- QTimer.singleShot(0, updater)
142
+ QTimer.singleShot(0, widget, updater)
143
143
  if start_system_move:
144
144
  QTimer.singleShot(0, lambda window=window: self._start_window_move(window))
145
145
 
@@ -175,32 +175,9 @@ class DetachableTabWidget(QTabWidget):
175
175
  if window in self._detached_windows:
176
176
  self._detached_windows.remove(window)
177
177
 
178
- def transfer_host_on_main_close(self, main_window: ExperimentPlotWindow) -> ExperimentPlotWindow | None:
179
- """Open a new plot window with all tabs when the main window closes while tabs are detached."""
180
- if not self._detached_windows:
181
- return None
182
- replacement = ExperimentPlotWindow(main_window.parent())
183
- replacement.resize(main_window.size())
184
- replacement.move(main_window.pos())
185
- for index in range(self.count()):
186
- widget = self.widget(index)
187
- if widget is not None:
188
- replacement.tabs.addTab(widget, self.tabText(index))
189
- for window in list(self._detached_windows):
190
- widget = window.plot_widget
191
- window._reattaching = True
192
- window.takeCentralWidget()
193
- replacement.tabs.addTab(widget, window.tab_title)
194
- window.hide()
195
- self._detached_windows.clear()
196
- QTimer.singleShot(0, replacement.show)
197
- QTimer.singleShot(0, replacement.raise_)
198
- QTimer.singleShot(0, replacement.activateWindow)
199
- return replacement
200
-
201
178
 
202
179
  class ExperimentPlotWindow(QMainWindow):
203
- host_transferred = Signal(object)
180
+ closed = Signal()
204
181
 
205
182
  def __init__(self, parent: QWidget | None = None) -> None:
206
183
  super().__init__(parent)
@@ -216,14 +193,10 @@ class ExperimentPlotWindow(QMainWindow):
216
193
  self.setCentralWidget(central)
217
194
 
218
195
  def closeEvent(self, event: QCloseEvent) -> None:
219
- if self.tabs._detached_windows:
220
- event.ignore()
221
- replacement = self.tabs.transfer_host_on_main_close(self)
222
- if replacement is not None:
223
- self.host_transferred.emit(replacement)
224
- self.hide()
225
- return
196
+ self.tabs.reattach_detached_tabs()
226
197
  super().closeEvent(event)
198
+ if event.isAccepted():
199
+ self.closed.emit()
227
200
 
228
201
  def clear(self) -> None:
229
202
  self.tabs.close_detached_tabs()
@@ -16,6 +16,7 @@ from PySide6.QtWidgets import (
16
16
  QCheckBox,
17
17
  QFrame,
18
18
  QGridLayout,
19
+ QGroupBox,
19
20
  QHBoxLayout,
20
21
  QLabel,
21
22
  QLayoutItem,
@@ -58,7 +59,6 @@ from pycontrol_gui.widgets.experiment_run_preflight import (
58
59
  )
59
60
  from pycontrol_gui.widgets.experiment_run_summary import SummaryVariablesDialog
60
61
  from pycontrol_gui.widgets.log_filter_controller import LogFilterController
61
- from pycontrol_gui.widgets.session_panel import restore_splitter_layout, splitter_layout
62
62
  from pycontrol_gui.widgets.style import DISCONNECT_BUTTON_STYLE, START_BUTTON_STYLE, STOP_BUTTON_STYLE
63
63
  from pycontrol_gui.widgets.subject_run_panel import SubjectRunPanel
64
64
  from pycontrol_gui.workspace_snapshot import SetupView
@@ -177,13 +177,13 @@ class ExperimentRunView(QWidget):
177
177
  self._last_summary_dialog: SummaryVariablesDialog | None = None
178
178
  self._log_stretch_item: QLayoutItem | None = None
179
179
  self._log_live_updates_enabled = True
180
- self._experiment_plots_mounted_by_default = False
181
180
  self._experiment_plots_mounted = False
182
181
  self._syncing_panel_splitters = False
183
182
  self._session_splitter_layout: tuple[str, list[int]] | None = None
184
183
  self._log_plot_splitter_layout: tuple[str, list[int]] | None = None
185
184
  self._expanded_panel_height = self._EXPANDED_PANEL_MIN_HEIGHT
186
185
  self._expanded_panel_height_user_set = False
186
+ self._saved_run_view_layout: dict[str, object] = {}
187
187
  self._hook_dispatcher = HookDispatcher(log=self.hook_message.emit)
188
188
  # Built per experiment in ``start_experiment``; owns the once-only
189
189
  # latches for all_subjects_started/all_subjects_stopped/experiment_done
@@ -234,13 +234,53 @@ class ExperimentRunView(QWidget):
234
234
  self._apply_panel_height_policy()
235
235
 
236
236
  def run_view_layout(self) -> dict[str, object]:
237
- return {"rig_view_height": self.rig_view_height(), "splitters": self.splitter_layouts()}
237
+ layout = dict(self._saved_run_view_layout)
238
+ layout.update(
239
+ rig_view_height=self.rig_view_height(),
240
+ splitters=self.splitter_layouts(),
241
+ focus_one_rig=self.expand_one_at_a_time_checkbox.isChecked(),
242
+ )
243
+ if self._panels:
244
+ panel = next(iter(self._panels.values()))
245
+ layout["pane_visibility"] = {
246
+ name: panel.session_pane_visible(name) for name in ("log", "controls", "plot")
247
+ }
248
+ layout["rig_details"] = {
249
+ panel.spec.setup.name: panel.session_details_expanded for panel in self._panels.values()
250
+ }
251
+ layout["plots_window_visible"] = not self._experiment_plots_mounted
252
+ return layout
238
253
 
239
254
  def restore_run_view_layout(self, layout: object) -> None:
240
255
  if not isinstance(layout, dict):
241
256
  return
257
+ self._saved_run_view_layout = dict(layout)
242
258
  self.restore_rig_view_height(layout.get("rig_view_height"))
243
259
  self.restore_splitter_layouts(layout.get("splitters"))
260
+ focus = layout.get("focus_one_rig")
261
+ if isinstance(focus, bool):
262
+ self.expand_one_at_a_time_checkbox.blockSignals(True)
263
+ self.expand_one_at_a_time_checkbox.setChecked(focus)
264
+ self.expand_one_at_a_time_checkbox.blockSignals(False)
265
+ visibility = layout.get("pane_visibility")
266
+ details = layout.get("rig_details")
267
+ for panel in self._panels.values():
268
+ if isinstance(visibility, dict):
269
+ for name in ("log", "controls", "plot"):
270
+ visible = visibility.get(name)
271
+ if isinstance(visible, bool):
272
+ panel.set_session_pane_visible(name, visible)
273
+ if isinstance(details, dict):
274
+ visible = details.get(panel.spec.setup.name)
275
+ if isinstance(visible, bool):
276
+ panel.set_session_details_visible(visible)
277
+ self._restore_panel_splitter_layouts(panel)
278
+ if self._panels and isinstance(layout.get("plots_window_visible"), bool):
279
+ if layout["plots_window_visible"]:
280
+ self._show_plot_window()
281
+ else:
282
+ self._set_experiment_plots_mounted(True)
283
+ self._refresh_session_details_controls()
244
284
 
245
285
  def set_resources(
246
286
  self,
@@ -265,7 +305,6 @@ class ExperimentRunView(QWidget):
265
305
  self._ports = set(ports)
266
306
  if settings is not None:
267
307
  self._settings = settings
268
- self._experiment_plots_mounted_by_default = bool(settings.GUI.experiment_plots_mounted_by_default)
269
308
  self._set_default_expanded_panel_height_if_needed()
270
309
  for panel in self._panels.values():
271
310
  panel.apply_settings(settings)
@@ -345,7 +384,7 @@ class ExperimentRunView(QWidget):
345
384
  subjects=[spec.subject for spec in specs],
346
385
  )
347
386
  self._experiment_variables_finalized = False
348
- self._experiment_plots_mounted = self._experiment_plots_mounted_by_default
387
+ self._experiment_plots_mounted = True
349
388
  self._hardware_test_prepare_started = False
350
389
  self._set_default_expanded_panel_height_if_needed()
351
390
  self._remove_log_stretch()
@@ -369,21 +408,26 @@ class ExperimentRunView(QWidget):
369
408
  panel.subject_started.connect(self._on_subject_started)
370
409
  panel.subject_stopped.connect(self._on_subject_stopped)
371
410
  panel.details_visibility_changed.connect(self._on_panel_details_visibility_changed)
411
+ panel.session_pane_visibility_changed.connect(self._on_panel_session_pane_visibility_changed)
372
412
  panel.splitter_layout_changed.connect(self._on_panel_splitter_layout_changed)
373
413
  panel.resize_requested.connect(self._on_panel_resize_requested)
374
414
  self._panels[spec.subject] = panel
375
415
  plot_widget = SubjectPlotWidget(panel)
376
416
  self._plot_widgets[spec.subject] = plot_widget
377
417
  self.boxes_layout.addWidget(panel)
378
- if self._experiment_plots_mounted:
379
- panel.mount_plot_widget(plot_widget)
380
- else:
381
- self.plot_window.add_subject_plot(self._plot_tab_title(panel), plot_widget)
418
+ panel.mount_plot_widget(plot_widget)
382
419
  self._restore_panel_splitter_layouts(panel)
383
420
  self._hooks.experiment_initialized(self._outcomes(), **self._hook_variables())
384
421
  for panel in self._panels.values():
385
422
  panel.prepare()
386
- if self.expand_one_at_a_time_checkbox.isChecked():
423
+ self.restore_run_view_layout(self._saved_run_view_layout)
424
+ saved_details = self._saved_run_view_layout.get("rig_details", {})
425
+ has_saved_details = isinstance(saved_details, dict) and any(
426
+ panel.spec.setup.name in saved_details for panel in self._panels.values()
427
+ )
428
+ if self.expand_one_at_a_time_checkbox.isChecked() and (
429
+ not has_saved_details or sum(panel.session_details_visible for panel in self._panels.values()) > 1
430
+ ):
387
431
  self._enforce_one_expanded_panel()
388
432
  self._refresh_session_details_controls()
389
433
  self.log_filters_bar.setVisible(True)
@@ -402,6 +446,11 @@ class ExperimentRunView(QWidget):
402
446
  for panel in list(self._panels.values()):
403
447
  if not panel.shutdown_runtime_for_close():
404
448
  return False
449
+ if panels:
450
+ self._saved_run_view_layout = self.run_view_layout()
451
+ splitters = self._saved_run_view_layout["splitters"]
452
+ self._session_splitter_layout = splitters["session"]
453
+ self._log_plot_splitter_layout = splitters["log_plot"]
405
454
  self.plot_window.hide()
406
455
  self.plot_window.clear()
407
456
  for panel in panels:
@@ -416,6 +465,7 @@ class ExperimentRunView(QWidget):
416
465
  widget.deleteLater()
417
466
  self._panels.clear()
418
467
  self._plot_widgets.clear()
468
+ self._refresh_pane_visibility_controls()
419
469
  self._hook_dispatcher.clear_addon()
420
470
  self._hooks = None
421
471
  self._experiment = None
@@ -478,22 +528,20 @@ class ExperimentRunView(QWidget):
478
528
  )
479
529
  self.plots_button = QPushButton("Show plots")
480
530
  self.plots_button.setIcon(icon("bar-graph"))
481
- self.plots_button.setSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Expanding)
482
- self.mount_plots_button = QPushButton("Mount plots")
483
- self.mount_plots_button.setIcon(icon("mount"))
484
- self.mount_plots_button.setSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Expanding)
531
+ self.plots_button.setSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Fixed)
485
532
  self.cancel_experiment_button = QPushButton("Cancel experiment")
486
533
  self.cancel_experiment_button.setIcon(icon("close_white"))
487
534
  self.cancel_experiment_button.setStyleSheet(STOP_BUTTON_STYLE)
488
- self.cancel_experiment_button.setSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Expanding)
535
+ self.cancel_experiment_button.setSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Fixed)
536
+ self.cancel_experiment_button.setMinimumHeight(40)
489
537
  self.startstopclose_all_button = QPushButton("Start all")
490
538
  self.startstopclose_all_button.setIcon(icon("play_white"))
491
539
  self.startstopclose_all_button.setStyleSheet(START_BUTTON_STYLE)
492
- self.startstopclose_all_button.setSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Expanding)
540
+ self.startstopclose_all_button.setSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Fixed)
541
+ self.startstopclose_all_button.setMinimumHeight(40)
493
542
  self.expand_details_button.setEnabled(False)
494
543
  self.collapse_details_button.setEnabled(False)
495
544
  self.plots_button.setEnabled(False)
496
- self.mount_plots_button.setEnabled(False)
497
545
  self.cancel_experiment_button.hide()
498
546
  self.startstopclose_all_button.hide()
499
547
  self.startstopclose_all_button.setEnabled(False)
@@ -522,26 +570,72 @@ class ExperimentRunView(QWidget):
522
570
  self.log_autoscroll_checkbox.setChecked(True)
523
571
  self.log_autoscroll_checkbox.setToolTip("When enabled, all experiment logs follow new entries to the bottom.")
524
572
 
525
- center_controls_layout = QGridLayout()
573
+ self.logs_visible_checkbox = QCheckBox("Logs")
574
+ self.controls_visible_checkbox = QCheckBox("Controls")
575
+ self.plots_visible_checkbox = QCheckBox("Plots")
576
+ self._pane_visibility_checkboxes = {
577
+ "log": self.logs_visible_checkbox,
578
+ "controls": self.controls_visible_checkbox,
579
+ "plot": self.plots_visible_checkbox,
580
+ }
581
+ visibility_layout = QHBoxLayout()
582
+ visibility_layout.setContentsMargins(0, 0, 0, 0)
583
+ visibility_layout.setSpacing(10)
584
+ for pane_name, checkbox in self._pane_visibility_checkboxes.items():
585
+ checkbox.setChecked(True)
586
+ checkbox.setEnabled(False)
587
+ label = "logs" if pane_name == "log" else "plots" if pane_name == "plot" else "controls"
588
+ checkbox.setToolTip(f"Show/hide {label} in all rig views.")
589
+ visibility_layout.addWidget(checkbox)
590
+ visibility_layout.addStretch(1)
591
+
592
+ self.rig_views_group = QGroupBox("Rig views")
593
+ rig_views_layout = QVBoxLayout(self.rig_views_group)
594
+ rig_views_layout.setContentsMargins(12, 8, 12, 10)
595
+ rig_views_layout.setSpacing(8)
596
+ rig_views_layout.addLayout(visibility_layout)
597
+ detail_buttons_layout = QHBoxLayout()
598
+ detail_buttons_layout.setSpacing(8)
599
+ detail_buttons_layout.addWidget(self.expand_details_button)
600
+ detail_buttons_layout.addWidget(self.collapse_details_button)
601
+ detail_buttons_layout.addSpacing(8)
602
+ detail_buttons_layout.addWidget(self.expand_one_at_a_time_checkbox)
603
+ rig_views_layout.addLayout(detail_buttons_layout)
604
+
605
+ self.logs_group = QGroupBox("Logs")
606
+ logs_layout = QVBoxLayout(self.logs_group)
607
+ logs_layout.setContentsMargins(12, 8, 12, 10)
608
+ logs_layout.setSpacing(8)
609
+ logs_layout.addWidget(self.log_filters_button)
610
+ logs_layout.addWidget(self.log_autoscroll_checkbox)
611
+ logs_layout.addStretch(1)
612
+
613
+ self.plot_window_group = QGroupBox("Plot window")
614
+ plots_layout = QVBoxLayout(self.plot_window_group)
615
+ plots_layout.setContentsMargins(12, 8, 12, 10)
616
+ plots_layout.setSpacing(8)
617
+ plots_layout.addWidget(self.plots_button)
618
+ plots_hint = QLabel("Remounts on close")
619
+ plots_hint.setStyleSheet("color: #667085;")
620
+ plots_layout.addWidget(plots_hint)
621
+ plots_layout.addStretch(1)
622
+
623
+ center_controls_layout = QHBoxLayout()
526
624
  center_controls_layout.setContentsMargins(0, 0, 0, 0)
527
- center_controls_layout.setHorizontalSpacing(10)
528
- center_controls_layout.setVerticalSpacing(6)
529
- center_controls_layout.addWidget(self.log_filters_button, 0, 0)
530
- center_controls_layout.addWidget(self.log_autoscroll_checkbox, 1, 0)
531
- center_controls_layout.addWidget(self.plots_button, 0, 1)
532
- center_controls_layout.addWidget(self.mount_plots_button, 1, 1)
533
- center_controls_layout.addWidget(self.expand_details_button, 0, 2)
534
- center_controls_layout.addWidget(self.collapse_details_button, 0, 3)
535
- center_controls_layout.addWidget(self.expand_one_at_a_time_checkbox, 1, 2, 1, 2)
536
- center_controls_layout.setRowStretch(0, 1)
537
- center_controls_layout.setRowStretch(1, 1)
625
+ center_controls_layout.setSpacing(12)
626
+ for group in (self.rig_views_group, self.logs_group, self.plot_window_group):
627
+ group.setStyleSheet(
628
+ "QGroupBox { border: 1px solid #d6dce4; border-radius: 6px; margin-top: 8px; }"
629
+ "QGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; "
630
+ "left: 10px; padding: 0 4px; color: #475467; font-weight: 600; }"
631
+ )
632
+ center_controls_layout.addWidget(group)
538
633
  self.log_filters_bar = QWidget()
539
634
  self.log_filters_bar.setLayout(center_controls_layout)
540
635
  self.log_filters_bar.setVisible(False)
541
636
  self._set_log_filter_controls_enabled(False)
542
637
  self._set_hardware_test_header_visible(False)
543
638
  self._fit_header_text_fields()
544
- self._fit_plots_button_height()
545
639
 
546
640
  action_layout = QHBoxLayout()
547
641
  action_layout.setContentsMargins(0, 0, 0, 0)
@@ -551,11 +645,12 @@ class ExperimentRunView(QWidget):
551
645
 
552
646
  header_layout = QHBoxLayout()
553
647
  header_layout.setContentsMargins(0, 0, 0, 0)
554
- header_layout.setSpacing(0)
555
- header_layout.addWidget(self.left_header)
648
+ header_layout.setSpacing(20)
649
+ header_layout.addWidget(self.left_header, alignment=Qt.AlignmentFlag.AlignVCenter)
556
650
  header_layout.addStretch(1)
557
- header_layout.addWidget(self.log_filters_bar)
651
+ header_layout.addWidget(self.log_filters_bar, alignment=Qt.AlignmentFlag.AlignVCenter)
558
652
  header_layout.addStretch(1)
653
+ action_layout.setAlignment(Qt.AlignmentFlag.AlignVCenter)
559
654
  header_layout.addLayout(action_layout)
560
655
 
561
656
  self.scroll_area = QScrollArea(self)
@@ -574,22 +669,19 @@ class ExperimentRunView(QWidget):
574
669
  layout.addLayout(header_layout)
575
670
  layout.addWidget(self.scroll_area, stretch=1)
576
671
  self.plot_window = ExperimentPlotWindow(self)
577
- self.plot_window.host_transferred.connect(self._on_plot_host_transferred)
578
-
579
- def _on_plot_host_transferred(self, new_host: ExperimentPlotWindow) -> None:
580
- self.plot_window = new_host
581
- new_host.host_transferred.connect(self._on_plot_host_transferred)
672
+ self.plot_window.closed.connect(self._on_plot_window_closed)
582
673
 
583
674
  def _wire_ui(self) -> None:
584
675
  self.expand_details_button.clicked.connect(lambda: self._set_all_session_details_visible(True))
585
676
  self.collapse_details_button.clicked.connect(lambda: self._set_all_session_details_visible(False))
586
677
  self.expand_one_at_a_time_checkbox.toggled.connect(self._on_expand_one_at_a_time_toggled)
587
678
  self.plots_button.clicked.connect(self._show_plot_window)
588
- self.mount_plots_button.clicked.connect(self._toggle_experiment_plots_mounted)
589
679
  self.cancel_experiment_button.clicked.connect(self._cancel_experiment)
590
680
  self.startstopclose_all_button.clicked.connect(self._start_stop_close_all)
591
681
  self.hook_message.connect(self._log_hook_message)
592
682
  self.log_autoscroll_checkbox.toggled.connect(self._on_log_live_updates_toggled)
683
+ for name, checkbox in self._pane_visibility_checkboxes.items():
684
+ checkbox.toggled.connect(lambda visible, name=name: self._set_all_session_panes_visible(name, visible))
593
685
 
594
686
  def _set_hardware_test_header_visible(self, visible: bool) -> None:
595
687
  self.hardware_test_label.setVisible(visible)
@@ -600,28 +692,17 @@ class ExperimentRunView(QWidget):
600
692
  text = field.text()
601
693
  width = field.fontMetrics().horizontalAdvance(text) + 24
602
694
  field.setFixedWidth(max(48, min(width, 320)))
603
- self._fit_plots_button_height()
604
-
605
- def _fit_plots_button_height(self) -> None:
606
- center_layout = self.log_filters_bar.layout()
607
- if not isinstance(center_layout, QGridLayout):
608
- return
609
- row_height = max(
610
- self.expand_details_button.sizeHint().height(),
611
- self.collapse_details_button.sizeHint().height(),
612
- self.log_filters_button.sizeHint().height(),
613
- self.log_autoscroll_checkbox.sizeHint().height(),
614
- )
615
- self.plots_button.setMinimumHeight(row_height)
616
- self.mount_plots_button.setMinimumHeight(row_height)
617
695
 
618
696
  def _show_plot_window(self) -> None:
619
- if self._experiment_plots_mounted:
697
+ if not self._panels:
620
698
  return
699
+ self._set_experiment_plots_mounted(False)
621
700
  self.plot_window.show()
701
+ self.plot_window.raise_()
702
+ self.plot_window.activateWindow()
622
703
 
623
- def _toggle_experiment_plots_mounted(self) -> None:
624
- self._set_experiment_plots_mounted(not self._experiment_plots_mounted)
704
+ def _on_plot_window_closed(self) -> None:
705
+ self._set_experiment_plots_mounted(True)
625
706
 
626
707
  def _set_experiment_plots_mounted(self, mounted: bool) -> None:
627
708
  if not self._panels:
@@ -664,10 +745,7 @@ class ExperimentRunView(QWidget):
664
745
  def _refresh_plot_mount_controls(self) -> None:
665
746
  has_plots = bool(self._panels)
666
747
  self.plots_button.setVisible(True)
667
- self.plots_button.setEnabled(has_plots and not self._experiment_plots_mounted)
668
- self.mount_plots_button.setEnabled(has_plots)
669
- self.mount_plots_button.setText("Unmount plots" if self._experiment_plots_mounted else "Mount plots")
670
- self.mount_plots_button.setIcon(icon("detach" if self._experiment_plots_mounted else "mount"))
748
+ self.plots_button.setEnabled(has_plots)
671
749
 
672
750
  @staticmethod
673
751
  def _plot_tab_title(panel: SubjectRunPanel) -> str:
@@ -691,11 +769,7 @@ class ExperimentRunView(QWidget):
691
769
  self._expanded_panel_height = self._default_expanded_panel_height()
692
770
 
693
771
  def _default_expanded_panel_height(self) -> int:
694
- return (
695
- self._EXPANDED_PANEL_WITH_PLOT_MIN_HEIGHT
696
- if self._experiment_plots_mounted_by_default
697
- else self._EXPANDED_PANEL_MIN_HEIGHT
698
- )
772
+ return self._EXPANDED_PANEL_WITH_PLOT_MIN_HEIGHT
699
773
 
700
774
  def _set_log_filter_options(self, states: object, events: object, *, reset: bool = False) -> None:
701
775
  self._log_filter_controller.set_filter_options(states=states, events=events, reset=reset)
@@ -843,6 +917,35 @@ class ExperimentRunView(QWidget):
843
917
  panel.set_session_details_visible(False)
844
918
  self._refresh_session_details_controls()
845
919
 
920
+ def _set_all_session_panes_visible(self, pane_name: str, visible: bool) -> None:
921
+ for panel in self._panels.values():
922
+ panel.set_session_pane_visible(pane_name, visible)
923
+ if visible and self._panels and not any(panel.session_details_visible for panel in self._panels.values()):
924
+ if self.expand_one_at_a_time_checkbox.isChecked():
925
+ next(iter(self._panels.values())).set_session_details_visible(True)
926
+ else:
927
+ for panel in self._panels.values():
928
+ panel.set_session_details_visible(True)
929
+ self._refresh_session_details_controls()
930
+
931
+ def _refresh_pane_visibility_controls(self) -> None:
932
+ panel = next(iter(self._panels.values()), None)
933
+ saved_visibility = self._saved_run_view_layout.get("pane_visibility", {})
934
+ for name, checkbox in self._pane_visibility_checkboxes.items():
935
+ visible = panel.session_pane_visible(name) if panel is not None else saved_visibility.get(name, True)
936
+ checkbox.blockSignals(True)
937
+ checkbox.setChecked(bool(visible))
938
+ checkbox.blockSignals(False)
939
+ checkbox.setEnabled(panel is not None)
940
+
941
+ def _on_panel_session_pane_visibility_changed(
942
+ self, source_panel: SubjectRunPanel, pane_name: str, visible: bool
943
+ ) -> None:
944
+ for panel in self._panels.values():
945
+ if panel is not source_panel:
946
+ panel.set_session_pane_visible(pane_name, visible)
947
+ self._refresh_session_details_controls()
948
+
846
949
  def _on_panel_resize_requested(self, panel: SubjectRunPanel, height: int) -> None:
847
950
  if not panel.session_details_visible:
848
951
  return
@@ -857,7 +960,9 @@ class ExperimentRunView(QWidget):
857
960
  sizes = source_splitter.sizes()
858
961
  if len(sizes) != 2:
859
962
  return
860
- self._set_panel_splitter_layout(splitter_attr, splitter_layout(source_splitter))
963
+ name = "session" if splitter_attr == "session_splitter" else "log_plot"
964
+ layout = source_panel.splitter_layouts()[name]
965
+ self._set_panel_splitter_layout(splitter_attr, layout)
861
966
  self._syncing_panel_splitters = True
862
967
  try:
863
968
  for panel in self._panels.values():
@@ -866,20 +971,16 @@ class ExperimentRunView(QWidget):
866
971
  target_splitter = getattr(panel, splitter_attr)
867
972
  if target_splitter.count() != source_splitter.count():
868
973
  continue
869
- target_splitter.setOrientation(source_splitter.orientation())
870
- target_splitter.setSizes(list(sizes))
871
- target_splitter.schedule_collapsed_handle_style_update()
974
+ panel.restore_splitter_layouts({name: layout})
872
975
  finally:
873
976
  self._syncing_panel_splitters = False
874
977
  self._apply_panel_height_policy()
875
978
 
876
979
  def _restore_panel_splitter_layouts(self, panel: SubjectRunPanel) -> None:
877
- if self._session_splitter_layout is not None:
878
- restore_splitter_layout(panel.session_splitter, self._session_splitter_layout)
879
- panel.session_splitter.schedule_collapsed_handle_style_update()
880
- if self._log_plot_splitter_layout is not None and panel.log_plot_splitter.count() == 2:
881
- restore_splitter_layout(panel.log_plot_splitter, self._log_plot_splitter_layout)
882
- panel.log_plot_splitter.schedule_collapsed_handle_style_update()
980
+ panel.restore_splitter_layouts({
981
+ "session": self._session_splitter_layout,
982
+ "log_plot": self._log_plot_splitter_layout,
983
+ })
883
984
 
884
985
  def _set_panel_splitter_layout(self, splitter_attr: str, layout: tuple[str, list[int]]) -> None:
885
986
  if splitter_attr == "session_splitter":
@@ -915,13 +1016,13 @@ class ExperimentRunView(QWidget):
915
1016
  return self._expanded_panel_height
916
1017
 
917
1018
  def _current_splitter_layout(self, splitter_attr: str) -> tuple[str, list[int]] | None:
1019
+ name = "session" if splitter_attr == "session_splitter" else "log_plot"
918
1020
  for panel in self._panels.values():
919
- splitter = getattr(panel, splitter_attr, None)
920
- if isinstance(splitter, QSplitter):
921
- return splitter_layout(splitter)
1021
+ return panel.splitter_layouts()[name]
922
1022
  return None
923
1023
 
924
1024
  def _refresh_session_details_controls(self) -> None:
1025
+ self._refresh_pane_visibility_controls()
925
1026
  all_details_visible = bool(self._panels) and all(
926
1027
  panel.session_details_visible for panel in self._panels.values()
927
1028
  )
@@ -247,7 +247,9 @@ class ExperimentsTab(QWidget):
247
247
  self._root_layout.addWidget(self.run_view, stretch=1)
248
248
 
249
249
  self._save_experiment_shortcut = QShortcut(QKeySequence.StandardKey.Save, self)
250
- self._save_experiment_shortcut.setContext(Qt.ShortcutContext.WidgetWithChildrenShortcut)
250
+ # Window scope (Qt skips it while this tab is hidden): focus can sit on the main
251
+ # window's tab bar, outside this widget, especially on Windows.
252
+ self._save_experiment_shortcut.setContext(Qt.ShortcutContext.WindowShortcut)
251
253
  self._save_experiment_shortcut.activated.connect(self._on_save_experiment_shortcut)
252
254
 
253
255
  def _wire_ui(self) -> None:
@@ -38,7 +38,7 @@ class KeyboardShortcutsDialog(QDialog):
38
38
  add_section(
39
39
  "Global shortcuts",
40
40
  [
41
- ("Settings", _native(QKeySequence.StandardKey.Preferences)),
41
+ ("Settings", _native("Ctrl+,")),
42
42
  ("Open workspace", _native(QKeySequence.StandardKey.Open)),
43
43
  ("Data directory (View menu)", _native("Ctrl+D")),
44
44
  ("Tasks directory (View menu)", _native("Ctrl+T")),
@@ -377,23 +377,22 @@ class RunTaskTab(QWidget):
377
377
  self.plot_update_timer = QTimer(self)
378
378
  self.plot_update_timer.setInterval(50)
379
379
  self.plot_update_timer.timeout.connect(self._on_plot_update_timer)
380
+ # Window scope (Qt skips these while this tab is hidden): focus can sit on the main
381
+ # window's tab bar, outside this widget, especially on Windows.
380
382
  self._run_toggle_shortcut = QShortcut(QKeySequence(Qt.Key.Key_Space), self)
381
- self._run_toggle_shortcut.setContext(Qt.ShortcutContext.WidgetWithChildrenShortcut)
383
+ self._run_toggle_shortcut.setContext(Qt.ShortcutContext.WindowShortcut)
382
384
  self._run_toggle_shortcut.activated.connect(self._on_run_toggle_shortcut)
383
385
  self._reveal_task_shortcut = QShortcut(QKeySequence("Ctrl+Shift+T"), self)
384
- self._reveal_task_shortcut.setContext(Qt.ShortcutContext.WidgetWithChildrenShortcut)
386
+ self._reveal_task_shortcut.setContext(Qt.ShortcutContext.WindowShortcut)
385
387
  self._reveal_task_shortcut.activated.connect(self._reveal_selected_task)
386
388
  self._reveal_hwdef_shortcut = QShortcut(QKeySequence("Ctrl+Shift+H"), self)
387
- self._reveal_hwdef_shortcut.setContext(Qt.ShortcutContext.WidgetWithChildrenShortcut)
389
+ self._reveal_hwdef_shortcut.setContext(Qt.ShortcutContext.WindowShortcut)
388
390
  self._reveal_hwdef_shortcut.activated.connect(self._reveal_selected_hwdef)
389
- self._reveal_data_dir_shortcut = QShortcut(QKeySequence("Ctrl+D"), self)
390
- self._reveal_data_dir_shortcut.setContext(Qt.ShortcutContext.WidgetWithChildrenShortcut)
391
- self._reveal_data_dir_shortcut.activated.connect(self._reveal_workspace_data_dir)
392
391
  self._open_task_select_shortcut = QShortcut(QKeySequence(Qt.Key.Key_T), self)
393
- self._open_task_select_shortcut.setContext(Qt.ShortcutContext.WidgetWithChildrenShortcut)
392
+ self._open_task_select_shortcut.setContext(Qt.ShortcutContext.WindowShortcut)
394
393
  self._open_task_select_shortcut.activated.connect(self._on_open_task_select_shortcut)
395
394
  self._upload_task_shortcut = QShortcut(QKeySequence(Qt.Key.Key_U), self)
396
- self._upload_task_shortcut.setContext(Qt.ShortcutContext.WidgetWithChildrenShortcut)
395
+ self._upload_task_shortcut.setContext(Qt.ShortcutContext.WindowShortcut)
397
396
  self._upload_task_shortcut.activated.connect(self._on_upload_task_shortcut)
398
397
  self._set_log_live_updates_enabled(True)
399
398
  self._set_plot_live_updates_enabled(True)
@@ -920,23 +919,6 @@ class RunTaskTab(QWidget):
920
919
  except OSError as exc:
921
920
  self._append_log_entry(kind="error", content=f'Could not reveal hardware definition "{hwdef_path}": {exc}')
922
921
 
923
- def _reveal_workspace_data_dir(self) -> None:
924
- if self._workspace_data_dir is None:
925
- self._append_log_entry(kind="info", content="No workspace data directory available.")
926
- return
927
- if not self._workspace_data_dir.exists():
928
- self._append_log_entry(
929
- kind="error", content=f'Could not reveal missing data directory "{self._workspace_data_dir}".'
930
- )
931
- return
932
-
933
- try:
934
- self._reveal_path_in_file_manager(self._workspace_data_dir)
935
- except OSError as exc:
936
- self._append_log_entry(
937
- kind="error", content=f'Could not reveal data directory "{self._workspace_data_dir}": {exc}'
938
- )
939
-
940
922
  @staticmethod
941
923
  def _reveal_path_in_file_manager(path: Path) -> None:
942
924
  if sys.platform == "darwin":