Quote:
Originally Posted by kovidgoyal
Instead you can try calling
self.raise()
|
self.raise() gives a syntax error, and self.raise_() presumably generated an exception (since my dialog no longer appeared at all).
Here's my code that gets run when I've had to give up on converting a file:
Code:
if is_ok_to_use_qt():
#self.raise_()
QMessageBox.question( None,
'My Plugin',
"Couldn't convert: %s\nImporting original version instead." % path_to_ebook, QMessageBox.Ok)
return path_to_ebook
Suggestions welcome - I'm afraid python is new enough to me. Adding in QT as well has me well out of my depth.