Compare commits

..

2 Commits

Author SHA1 Message Date
semantic-release 5fde0c6efc 3.15.1
Automatically generated by python-semantic-release
2026-06-13 14:37:22 +00:00
wakonig_k 68903fc6ae fix(curve_tree): update header labels to reflect device and signal columns 2026-06-13 16:36:36 +02:00
50 changed files with 11 additions and 65 deletions
+8
View File
@@ -1,6 +1,14 @@
# CHANGELOG
## v3.15.1 (2026-06-13)
### Bug Fixes
- **curve_tree**: Update header labels to reflect device and signal columns
([`68903fc`](https://github.com/bec-project/bec_widgets/commit/68903fc6ae2ffd3ac7b5394ba6cf9a4b2ce745e5))
## v3.15.0 (2026-06-12)
### Bug Fixes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-63
View File
@@ -1,63 +0,0 @@
from pathlib import Path
from qtpy.QtCore import QUrl
from qtpy.QtMultimedia import QAudioOutput, QMediaPlayer
from qtpy.QtWidgets import QApplication, QComboBox, QPushButton, QVBoxLayout, QWidget
class SoundPlayerWidget(QWidget):
"""Simple widget to preview bundled sound assets."""
def __init__(self, parent=None):
super().__init__(parent=parent)
self.setWindowTitle("Sound Player")
self._sounds_dir = Path(__file__).resolve().parent.parent / "assets" / "sounds"
self._player = QMediaPlayer(self)
self._audio_output = QAudioOutput(self)
self._player.setAudioOutput(self._audio_output)
self.sound_combo_box = QComboBox(self)
self.play_button = QPushButton("Play", self)
self._populate_sounds()
self.play_button.clicked.connect(self.play_selected_sound)
layout = QVBoxLayout(self)
layout.addWidget(self.sound_combo_box)
layout.addWidget(self.play_button)
self.resize(420, 100)
def _populate_sounds(self) -> None:
"""Load bundled sound assets into the combo box."""
sound_files = sorted(self._sounds_dir.glob("*.mp3"))
for sound_file in sound_files:
self.sound_combo_box.addItem(sound_file.stem, str(sound_file))
self.play_button.setEnabled(bool(sound_files))
if not sound_files:
self.sound_combo_box.addItem("No sounds found")
def play_selected_sound(self) -> None:
"""Play the currently selected sound asset."""
sound_path = self.sound_combo_box.currentData()
if not sound_path:
return
self._player.setSource(QUrl.fromLocalFile(sound_path))
self._player.stop()
self._player.play()
if __name__ == "__main__": # pragma: no cover
import sys
from bec_qthemes import apply_theme
app = QApplication(sys.argv)
apply_theme("light")
widget = SoundPlayerWidget()
widget.show()
sys.exit(app.exec_())
@@ -552,7 +552,7 @@ class CurveTree(BECWidget, QWidget):
self.tree = QTreeWidget()
self.tree.setColumnCount(8)
self.tree.setHeaderLabels(
["Actions", "Name", "Entry", "Scan #", "Color", "Style", "Width", "Symbol"]
["Actions", "Device", "Signal", "Scan #", "Color", "Style", "Width", "Symbol"]
)
header = self.tree.header()
+2 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "bec_widgets"
version = "3.15.0"
version = "3.15.1"
description = "BEC Widgets"
requires-python = ">=3.11"
classifiers = [
@@ -76,6 +76,7 @@ qtermwidget = ["pyside6_qtermwidget"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"