All Questions
285
questions
0
votes
1
answer
28
views
PyQt5 - QThread subclass that reimplements run() but also handles events
This link explains that QThread can be used in one of two ways:
A QThread instance that runs a default event loop. You can dispatch events to be executed by the thread using signals and a worker ...
0
votes
1
answer
43
views
Prevent specific key presses from being sent to foreground app using PyQt5 and pynput
So I want to detect certain keys being pressed and stop those keys being sent to the foreground app.
I don't want to use hideous libraries like pywin32 and pyHook as they are such a headache to build. ...
0
votes
0
answers
22
views
How to correctly use a pyqt5 QTimer and QThreadPool together in QApplication
I am currently trying to use a QTimer object in order to poll an api for differences to the current application but it is never running. I don't know if it is because it's being skipped in my init ...
1
vote
1
answer
71
views
pyqtSignal emit multi type [duplicate]
I have a signal to be: auto_dj_start = pyqtSignal(dict,str,dict,str)
Sometimes when the player list is empty i want to emit None to all parameters instead of dicts and string.
But this error happens:
...
0
votes
0
answers
59
views
PyQt5 - Using multiprocessing for matplotlib purposes
With this code i am trying to plot a pydub.AudioSegment signal which has duration=125msec.
The plot time window (x-axis) is 3 sec.
code:
import time
from PyQt5.QtCore import pyqtSignal, QThread
from ...
0
votes
0
answers
34
views
QThread start() not executing?
I am trying to execute some functions in the background of an PyQt5 application. The print statement in run() does not print when thread.start() is called. I think I am misunderstanding how threads ...
0
votes
0
answers
88
views
PyQt5, Qthread. Process finished with exit code -1073740791 (0xC0000409)
Good day. I can’t figure out why the program crashes with the error Process finished with exit code -1073740791 (0xC0000409). When one client connects, everything works fine, but when a second client ...
0
votes
0
answers
41
views
How to continue application after waiting a thread return results
I want to continue application after waiting a thread complete in PyQt5. In this code, self.capture_handle.relabeling_thread() gets current image in widget and after display it into new widget. I use ...
0
votes
2
answers
180
views
PyQt5 application not responding during operation if any event is noticed by the app
I have created a simple application to replicate this issue.
Basically, if you click away or click on the app (replicating an event that is handled by the application), then it sets it into the queue ...
0
votes
0
answers
50
views
PyQt5 Signals not received from Thread after some time in QMainWindow and QWidget
I have QThread where Flask app is running and serves as Webhook receiver.
class WebhookListenerThread(QThread):
webhook_received = pyqtSignal(dict)
app = Flask(__name__)
def __init__(self)...
0
votes
0
answers
65
views
Check for pattern in a non-blocking manner using PyQt6
I have a method command(self, command, data), part of a class CommandProcessor that checks a buffer for a specific pattern and then returns it content:
command(self, message):
serial_port.write(...
0
votes
0
answers
136
views
VTK Render Window and QThread synchronization Issue
I am currently working on developing a utility for visualizing data collection. I have created a PyQt5 GUI, and I am using the vtk library to visualize live data from an external source. My current ...
0
votes
0
answers
82
views
Updating QPixmap inside Thread While-Loop Causes Segmentation Fault
I am creating a PyQt5 parking detection warning system with a Rasberry Pi and HC-SR04 distance sensor as part of a go-kart dashboard project. I am trying to update some polygon png images (QImage) ...
0
votes
1
answer
88
views
PyQt5 - Implement thread to stop UI from freezing [duplicate]
I work on a simple PyQt5 app that connects to a remote host, and install a package on it using snmp, ssh.
Basicaly, the user write the ip address, press the start button, and here goes the magic !
My ...
1
vote
1
answer
598
views
How to implement a Progress Bar using PyQt5?
I'm using PyQt5 and I want to know how to implement a progress bar, so the user can see the progress of a certain function that takes several minutes to complete. I want the progress bar to be ...