PytQt5 Live Audio GUI with start and stop buttons | QThreadPool: PyQt5 tutorial - Part 11

preview_player
Показать описание
Hello friends, this tutorial is an update of the previous tutorial No. 10. Like before, we will get data from the live audio stream through the computer’s microphone. We have another button named “Stop” added to this GUI. This button will stop the current worker and let the user update the parameters in the GUI. This tutorial includes basics about the QThreadPool and how to stop the worker.

Рекомендации по теме
Комментарии
Автор

great tutorial. how if we want to add spectrogram plot in realtime?

dexnug
Автор

Hello, My name is Novita. Thanks to you for share your project video, this is help me to understand about GUI on python.

But, i need your help.
I have a project to build a GUI python real-time with raspi to monitoring thermocycler on PCR.

I hope you can help me.
After that, thank you

novitasihombing
Автор

Thank you very much for the explanation!!

eltonrobaina
Автор

In QtDesigner, I dragged a generic Widget (called it "graphWidget"), then promoted it from its baseclass of QWidget to my own class "PlotWidget". I then can load it via:

from pyqtgraph import PlotWidget, plot
...
class
self.mainbox = uic.loadUi('mainwindow.ui', self)

self.plot([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [30, 32, 34, 32, 33, 31, 29, 32, 35, 45])

But, how would you add a button or label to the central widget's layout?
self.label = QtWidgets.QLabel()


For example, none of these work:




Do I need to create a new layout using setCentralWidget or setLayout?
vLayout = QVBoxLayout ()
vLayout.addWidget( loadUi( 'mainwindow.ui' ) )

bennguyen
Автор

Hy my name is Yash

I want to add something in this gui.
That i want to select some part of a wave form and then plot the waveform frequency vs amplitude graph.... (Which is open in different window)
How can i do that..

And second thing is how I change the real time plot to Amplitude vs frequency. ..

Please help me out... 🙏 please

If possible please make a video on this also.... Please

yashsoni