View Single Post
Old 09-10-2019, 02:26 PM   #65
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,248
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Status Bar Messages

Hi, Kovid.

I've wrote a GUI plugin that shows a couple of messages on the status bar. With 3.47.1, everything works fine. Now, with 3.99.2, messages were not showing.

First, I was using this:
Code:
self.gui.status_bar.showMessage(_("Connecting to Skoob..."))
login_status = self.skoob_login()
self.gui.status_bar.clearMessage()
Then, following a tip from @Doitsu, I changed the code to this:

Code:
self.gui.status_bar.showMessage(_("Connecting to Skoob..."))
QApplication.processEvents(QtCore.QEventLoop.ExcludeUserInputEvents)
login_status = self.skoob_login()
self.gui.status_bar.clearMessage()
QApplication.processEvents(QtCore.QEventLoop.ExcludeUserInputEvents)
With this change, I got the first message to show, but that was it. None of the others showed up.
thiago.eec is offline