more cleanups

This commit is contained in:
Kovid Goyal 2010-01-21 17:25:59 -07:00
parent 8f97e09d0b
commit 44f6c0a1f5
3 changed files with 17 additions and 43 deletions

View File

@ -2,7 +2,7 @@ from __future__ import with_statement
__license__ = 'GPL v3'
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
import atexit, os, shutil, sys, tempfile, zipfile
import os, sys, zipfile
from calibre.constants import numeric_version
from calibre.ptempfile import PersistentTemporaryFile

View File

@ -9,7 +9,7 @@ __docformat__ = 'restructuredtext en'
from calibre.gui2 import gprefs
from calibre.gui2.catalog.catalog_csv_xml_ui import Ui_Form
from PyQt4.Qt import QDialog, QWidget, SIGNAL
from PyQt4.Qt import QWidget
class PluginWidget(QWidget,Ui_Form):

View File

@ -1,26 +0,0 @@
#!/usr/bin/env python
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
from __future__ import with_statement
__license__ = 'GPL v3'
__copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
from <basename> import Ui_Form
from PyQt4.Qt import QDialog, QWidget
class PluginWidget(QWidget,Ui_Form):
TITLE = _('<formats> Output')
HELP = _('Options specific to')+' <formats> '+_('output')
# Indicates whether this plugin wants its output synced to the connected device
sync_enabled = False
def initialize(self):
QWidget.__init__(self)
self.setupUi(self)
def options(self):
# Return a dictionary with options for this Widget
return {}