View Single Post
Old 02-17-2010, 02:03 PM   #18
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,082
Karma: 315558332
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by kovidgoyal View Post
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.
pdurrant is offline   Reply With Quote