qprogressbar

How to show progress bar while saving file to excel in python?

血红的双手。 提交于 2021-02-02 08:35:32
问题 Appreciate if you could help me. I have a trouble showing up the progress bar while saving file to excel. What I want to achieve is to show a progress bar while saving excel file from a pandas dataframe also from qwidgettable as it takes time before it saves. Until the excel file is downloaded or saved i want that progress bar to close. I tried looking over the net but I cant see specific answers to my query. So far, this is the compiled codes I have created. import sys from PyQt5 import

ProgressBar resume from where it stopped

纵然是瞬间 提交于 2021-01-28 06:20:21
问题 I have created a desktop application by PYQT5 and python 3.7 to download a video by clicking the download button and save it locally in the PC. The code will fetch the video link from (lineEdit.text()) which is labeled "URL" and save it in the local directory in (lineEdit_2.text()) which is labeled "SAVE AS" . If the download stops for any reason, it will be resumed again by press the start download button. In addition, the ProgressBar start from 1% until 100% along with downloading the video

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

QProgressBar update in QThread quitting crashes

混江龙づ霸主 提交于 2020-01-25 02:35:10
问题 I have the following code that works as expected. It updates the progress bar value in each for loop. The only issue I have is when I'm done and call emit ProcessUserRowsFinished() in the method OnProcessUserRowsStarted the program crashes. class UsersProcess: public QObject { Q_OBJECT public: UsersProcess(CTCore::DBConnect* db_context, UserSettingsMap user_settings_map); void SetProgressBar(QProgressBar *progress_bar); private: QProgressBar *progressBar; QSharedPointer<QList<CTCoreZen::User>

PyQt QProgressBar not working when I use it with Selenuim

烈酒焚心 提交于 2019-12-27 12:28:11
问题 I built a PyQt5 GUI to do some Selenium testing. Everything works as expected, except for the PyQt progress bar. In the first example below, where I use the Selenium browser, the progress bar just jumps to 100%, at the end, when the browser closes. But, the Selenium works as expected. def test(self): self.completed = 0 browser = webdriver.Firefox() links = ['http://www.somesite.com/', 'http://www.somesite.com/page2', 'http://www.somesite.com/page3'] for link in links: browser.get(link) self

Change the value of the progress bar from a class other than my GUI class PyQt4

纵饮孤独 提交于 2019-12-20 03:33:23
问题 I have a GUI class created by Qt designer in which i have a progress bar, and another class in which all the number crunching is done during which i want my progress bar to update regularly. The way i thought i would do this it to do something like this in the other class: gui.progressbar.setValue(some%) but i cant seem to make that work. the code for the gui class is something like: from PyQt4 import QtCore, QtGui from Run import RunProgram class Ui_mainLayout(QtGui.QWidget): def setupUi

What is the proper way to set QProgressBar to update from the logic layer?

孤街醉人 提交于 2019-12-18 19:02:45
问题 If I want to update a QProgressBar on the view layers from a loop on the logic layer (such as each iteration will update the progress bar), what is the proper way to do that? Thanks 回答1: class LogicClass : public QObject { Q_OBJECT public: explicit LogicClass(QObject *parent = 0); int max(){ return 100; } int min(){ return 0; } void emit50(){ emit signalProgress(50); } signals: void signalProgress(int); public slots: }; MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui:

Howto change progress by worker thread

99封情书 提交于 2019-12-13 14:38:40
问题 I'm new to PyQt4 so maybe it is a bagatelle. I try to show a progress in my GUI, which will be updated by an worker thread.The QProgressBar is with other memory's in a QTableWidget. The worker thread starts in the init function of my GUI. self.st = ServerThread() self.st.start() Here is the thread class _exportedMethods = { 'changes': signal_when_changes, } class ServerThread(QtCore.QThread): def __init__(self): super(ServerThread,self).__init__() st = self #threading.Thread.__init__(self)