home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_1252 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  1.2 KB  |  26 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. __license__ = 'GPL v3'
  5. __copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
  6. from PyQt4.QtGui import QDialog
  7. from calibre.gui2.dialogs.conversion_error_ui import Ui_ConversionErrorDialog
  8.  
  9. class ConversionErrorDialog(QDialog, Ui_ConversionErrorDialog):
  10.     
  11.     def __init__(self, window, title, html, show = False):
  12.         QDialog.__init__(self, window)
  13.         Ui_ConversionErrorDialog.__init__(self)
  14.         self.setupUi(self)
  15.         self.setWindowTitle(title)
  16.         self.set_message(html)
  17.         if show:
  18.             self.show()
  19.         
  20.  
  21.     
  22.     def set_message(self, html):
  23.         self.text.setHtml('<html><body>%s</body></html' % (html,))
  24.  
  25.  
  26.