All Questions
Tagged with pyqt5 multithreading
364
questions
0
votes
0
answers
29
views
Do I *Always* Need to Access GUI Elements from External Threads Using Signal/Slot in PyQt5?
While developing a Windows-based program using PyQt5, I encountered issues where the GUI was not updating in a timely manner due to long computation or wait times. To resolve this, I moved some ...
0
votes
0
answers
37
views
Can Python threads and queues be used to transfer data within in a PyQt5 QApplication? [duplicate]
My Use Case is:
I have a Non-Blocking Python module that writes data to a file
it uses threading.Thread to handle the Non-Blocking requirement
it uses Queue.queue to handle protecting the data that ...
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
2
answers
100
views
How to solve com_error: (-2147221008, 'CoInitialize has not been called.', None, None) for multithreaded excel application?
I have a worker thread for a PYQT5 application that feeds into a progress bar when the function is called. The issue is that I am getting a com_error: (-2147221008, 'CoInitialize has not been called.',...
0
votes
0
answers
21
views
Unknown error - Python Multithreading Issue [duplicate]
I am trying to perform multithreading in python. I am not new to python but only to the concept of Qt Threading specifically. Please find a sample code below:
import os
import numpy as np
import ...
0
votes
1
answer
39
views
Python - Flask stops listening when put into child thread
I'm trying to use both PyQt5 and Flask on a Raspberry Pi to create a webserver/GUI combo. Both modules (to the best of my understanding) want to work in the main thread, but I found some articles ...
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
1
answer
141
views
How to redirect sys.stdout to two or more separate widgets?
class EmitStr(QObject):
update_info_signal = pyqtSignal(str)
def write(self, text):
self.update_info_signal.emit(str(text))
QApplication.processEvents()
sys.stdout = EmitStr()...
0
votes
0
answers
114
views
asyncio and PyQt5: Inconsistent results when running a async function in QThreadPool
I'm working on a PyQt5 project where I need to call an asyncio function (self.handler.request_data) without blocking the main UI.
I decided to run the async function inside a thread, and since I'll ...
0
votes
0
answers
36
views
What is the best way to make all of the functions for a class run in a separate thread with PyQt5? [duplicate]
I have a worker class that handles some simple functionality to interface with Meta's Segment Anything Model. I would like to be able to call each of the functions in this class such that they execute ...
0
votes
0
answers
54
views
PyQT slot calls seem to jump to the front of the event loop
I'm writing a GUI in PyQT to control some hardware. I've had a lot of problems with one particular instrument that I'm accessing through a company provided dll. It seems like something in the dll ...
0
votes
0
answers
17
views
PyQt5 how to notify a (running in a loop) threadpool created using QThreadPool() that a checkbox has change state
This is working for me with the checkbox example but in the future I'd like to use other user inputs as well. And searching the topic did not show any solution but one thing is that GUI operations ...
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
0
answers
36
views
Progressbar dialog is not displaying but the thread is still running in background [duplicate]
I want the progressbar dialog should display the progress when the start button is pressed. The progressbar will display the progress of two for loops calculationg some values. I have a main module ...
1
vote
2
answers
163
views
Is there any influence of the main process when launching a subprocess with subprocess.Popen?
I'm trying to find information about "side effects" of launching Windows process with the subprocess.Popen library of Python.
I've heard that there are some good/bad practices for launching ...