home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_1221 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  1.5 KB  |  31 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. __license__ = 'GPL 3'
  5. __copyright__ = '2009, John Schember <john@nachtimwald.com>'
  6. __docformat__ = 'restructuredtext en'
  7. from calibre.gui2.convert.pdf_input_ui import Ui_Form
  8. from calibre.gui2.convert import Widget, QDoubleSpinBox
  9.  
  10. class PluginWidget(Widget, Ui_Form):
  11.     TITLE = _('PDF Input')
  12.     HELP = _('Options specific to') + ' PDF ' + _('input')
  13.     COMMIT_NAME = 'pdf_input'
  14.     ICON = I('mimetypes/pdf.png')
  15.     
  16.     def __init__(self, parent, get_option, get_help, db = None, book_id = None):
  17.         Widget.__init__(self, parent, [
  18.             'no_images',
  19.             'unwrap_factor'])
  20.         self.db = db
  21.         self.book_id = book_id
  22.         self.initialize_options(get_option, get_help, db, book_id)
  23.  
  24.     
  25.     def set_value_handler(self, g, val):
  26.         if val is None and isinstance(g, QDoubleSpinBox):
  27.             g.setValue(0)
  28.             return True
  29.  
  30.  
  31.