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

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. __copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net'
  5. __docformat__ = 'restructuredtext en'
  6. __license__ = 'GPL v3'
  7. from PyQt4.Qt import Qt, QDialog
  8. from calibre.gui2.dialogs.comments_dialog_ui import Ui_CommentsDialog
  9.  
  10. class CommentsDialog(QDialog, Ui_CommentsDialog):
  11.     
  12.     def __init__(self, parent, text):
  13.         QDialog.__init__(self, parent)
  14.         Ui_CommentsDialog.__init__(self)
  15.         self.setupUi(self)
  16.         icon = self.windowIcon()
  17.         self.setWindowFlags(self.windowFlags() & ~(Qt.WindowContextHelpButtonHint))
  18.         self.setWindowIcon(icon)
  19.         if text is not None:
  20.             self.textbox.setPlainText(text)
  21.         
  22.         self.textbox.setTabChangesFocus(True)
  23.  
  24.  
  25.