Skip to main content

All Questions

Tagged with
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 ...
김정규's user avatar
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 ...
Daryl Kelvasa's user avatar
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 ...
SMMB's user avatar
  • 117
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.',...
Raph Car's user avatar
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 ...
Guru's user avatar
  • 23
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 ...
Open-Analysis's user avatar
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 ...
Jimbo's user avatar
  • 1
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()...
Warm Neon's user avatar
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 ...
Drimer's user avatar
  • 103
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 ...
dund3r's user avatar
  • 1
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 ...
Briley Bourgeois's user avatar
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 ...
Brian Vu's user avatar
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 ...
QueueTi's user avatar
  • 11
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 ...
Gaurav's user avatar
  • 31
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 ...
stack92's user avatar
  • 13

15 30 50 per page
1
2 3 4 5
25