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

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. from __future__ import with_statement
  5. __license__ = 'GPL v3'
  6. __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
  7. __docformat__ = 'restructuredtext en'
  8. from calibre.gui2.convert.comic_input_ui import Ui_Form
  9. from calibre.gui2.convert import Widget
  10.  
  11. class PluginWidget(Widget, Ui_Form):
  12.     TITLE = _('Comic Input')
  13.     HELP = _('Options specific to') + ' comic ' + _('input')
  14.     
  15.     def __init__(self, parent, get_option, get_help, db = None, book_id = None):
  16.         Widget.__init__(self, parent, 'comic_input', [
  17.             'colors',
  18.             'dont_normalize',
  19.             'keep_aspect_ratio',
  20.             'right2left',
  21.             'despeckle',
  22.             'no_sort',
  23.             'no_process',
  24.             'landscape',
  25.             'dont_sharpen',
  26.             'disable_trim',
  27.             'wide',
  28.             'output_format',
  29.             'dont_grayscale'])
  30.         self.db = db
  31.         self.book_id = book_id
  32.         for x in get_option('output_format').option.choices:
  33.             self.opt_output_format.addItem(x)
  34.         
  35.         self.initialize_options(get_option, get_help, db, book_id)
  36.         self.opt_no_process.toggle()
  37.         self.opt_no_process.toggle()
  38.  
  39.  
  40.