View Single Post
Old 02-17-2010, 06:53 PM   #22
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 74,860
Karma: 319401478
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by kovidgoyal View Post
Do the following:

Code:
d = QMessageBox(QMessageBox.Warning, 'title', 'message')
d.show()
d.raise_()
I was wrong earlier, the import plugins are run in the same process as the GUI, so the boxes will stick around after the adding dialog is closed. This way, the user will be informed and the adding process wont be interrupted.
That doesn't seem to show the messagebox at all. but I found that

d.show()
d.raise_()
d.exec_()

did bring the MessageBox to the front of the "Adding..." dialog.

If I could find a way to leave messages up in a non-modal fashion behind the "Adding..." dialog, I can ses that that would be better for when people want to import loads of files and just leave it running.

But I'm happy for now.
pdurrant is offline   Reply With Quote