home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_1195 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  1.4 KB  |  29 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.     
  14.     def __init__(self, parent, get_option, get_help, db = None, book_id = None):
  15.         Widget.__init__(self, parent, 'pdf_input', [
  16.             'no_images',
  17.             'unwrap_factor'])
  18.         self.db = db
  19.         self.book_id = book_id
  20.         self.initialize_options(get_option, get_help, db, book_id)
  21.  
  22.     
  23.     def set_value_handler(self, g, val):
  24.         if val is None and isinstance(g, QDoubleSpinBox):
  25.             g.setValue(0)
  26.             return True
  27.  
  28.  
  29.