qthread

msgbox error while threading , GUI blocks [closed]

北城余情 提交于 2020-12-15 03:39:58
问题 Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last month . Improve this question I have a problem while executing the following gui. it works normally if there's no msgbox, but when there is a mesbox it blocks. any idea why the gui blocks when there is message. thank you from PyQt5 import QtCore, QtGui, QtWidgets import threading import time class Ui

msgbox error while threading , GUI blocks [closed]

帅比萌擦擦* 提交于 2020-12-15 03:38:59
问题 Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last month . Improve this question I have a problem while executing the following gui. it works normally if there's no msgbox, but when there is a mesbox it blocks. any idea why the gui blocks when there is message. thank you from PyQt5 import QtCore, QtGui, QtWidgets import threading import time class Ui

msgbox error while threading , GUI blocks [closed]

心不动则不痛 提交于 2020-12-15 03:38:33
问题 Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last month . Improve this question I have a problem while executing the following gui. it works normally if there's no msgbox, but when there is a mesbox it blocks. any idea why the gui blocks when there is message. thank you from PyQt5 import QtCore, QtGui, QtWidgets import threading import time class Ui

Can I create widgets on a non-GUI thread, then send to the GUI?

对着背影说爱祢 提交于 2020-12-12 02:56:29
问题 I have a complex function in my MainWindow class which periodically runs queries and changes attributes and data of the widgets. Since it can take a long time on the main thread, the GUI can appear to freeze. So I created a GUIUpdater class on another thread to do the periodic operation. I based it on the solution here, which shows how to update a QLabel from another thread: Qt - updating main window with second thread But that solution requires defining a connection. With a complex function

QThread closes whenever QFileDialog Called After Migrating from PyQt5 to Pyside2

别等时光非礼了梦想. 提交于 2020-12-04 04:59:23
问题 First of all, I'm currently migrating my source code from PyQt5 to PySide2 which requires me to change some of the syntaxes. As this site said that it only needs 3 things to do migrate from PyQt to Pyside2. 1.app.exec_. exec_ was used as exec is a Python2 keyword. Under Python3, PyQt5 allows the use of exec but not PySide2. 2.Under PyQt5 it’s QtCore.pyqtSignal and QtCore.pyqtSlot and under PySide2 it’s QtCore.Signal and QtCore.Slot . 3.loading Ui files. But anyway later on when I tried to run

PyQt5: pop-up progressbar using QThread

穿精又带淫゛_ 提交于 2020-08-20 09:00:28
问题 How can I implement a progress bar in a pop-up window that monitors the progress of a running function from a so-called Worker class (i.e. time/CPU-consuming task) by means of a QThread ? I have checked countless examples and tutorials, but the fact that the progressbar shows up in a pop-up window seems to make everything harder. I believe what I want is a rather simple thing but I keep failing at it and I ran out of ideas. I have an example of what I am trying to achieve, which is based on

PyQt5: pop-up progressbar using QThread

那年仲夏 提交于 2020-08-20 08:59:05
问题 How can I implement a progress bar in a pop-up window that monitors the progress of a running function from a so-called Worker class (i.e. time/CPU-consuming task) by means of a QThread ? I have checked countless examples and tutorials, but the fact that the progressbar shows up in a pop-up window seems to make everything harder. I believe what I want is a rather simple thing but I keep failing at it and I ran out of ideas. I have an example of what I am trying to achieve, which is based on