-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
706d2d1
commit a14c388
Showing
5 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from PyQt6.QtGui import QPixmap | ||
from PyQt6.QtWidgets import QLabel | ||
from PyQt6.QtWidgets import QWidget | ||
|
||
|
||
class ImuImageWidget(QWidget): | ||
def __init__(self, imageFile: str, *args, **kwargs): | ||
super().__init__(*args, **kwargs) | ||
|
||
self.layout = QVBoxLayout() | ||
self.pixmap = QPixmap(imageFile) | ||
self.image_label = QLabel(self.layout) | ||
label.setPixmap(self.pixmap) | ||
self.setLayout(self.layout) | ||
|
||
def sizeHint(self): | ||
return QSize(40, 120) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from PyQt5.QtCore import QUrl | ||
from PyQt6.QtMultimedia import QSoundEffect | ||
|
||
|
||
class ImuSoundEffect: | ||
def __init__(self, audio_file: str): | ||
self.sound_effect = QSoundEffect() | ||
self.sound_effect.setSource(QUrl.fromLocalFile(audio_file)) | ||
self.sound_effect.setLoopCount(-2) | ||
|
||
def play(self): | ||
self.sound_effect.play() |
Submodule modern-cpp-kafka
deleted from
b5f3b4