Helpviewer/WebPlugins/WebPluginInterface.py

changeset 2962
d6c9d1ca2da4
parent 2954
bf0215fe12d1
child 3057
10516539f238
child 3160
209a07d7e401
--- a/Helpviewer/WebPlugins/WebPluginInterface.py	Sun Sep 29 14:22:08 2013 +0200
+++ b/Helpviewer/WebPlugins/WebPluginInterface.py	Sun Sep 29 15:08:57 2013 +0200
@@ -7,9 +7,6 @@
 Module implementing the web plug-in interface.
 """
 
-from PyQt4.QtGui import QWidget
-from PyQt4.QtWebKit import QWebPluginFactory
-
 
 class WebPluginInterface(object):
     """
@@ -19,12 +16,11 @@
         """
         Public method to create a meta plug-in object containing plug-in info.
         
-        @return meta plug-in object (QWebPluginFactory.Plugin)
+        @ireturn meta plug-in object (QWebPluginFactory.Plugin)
         @exception NotImplementedError raised to indicate that this method
             must be implemented by subclasses
         """
         raise NotImplementedError
-        return QWebPluginFactory.Plugin()
     
     def create(self, mimeType, url, argumentNames, argumentValues):
         """
@@ -34,12 +30,11 @@
         @param url URL for the plug-in (QUrl)
         @param argumentNames list of argument names (list of strings)
         @param argumentValues list of argument values (list of strings)
-        @return reference to the created object (QWidget)
+        @ireturn reference to the created object (QWidget)
         @exception NotImplementedError raised to indicate that this method
             must be implemented by subclasses
         """
         raise NotImplementedError
-        return QWidget()
     
     def configure(self):
         """

eric ide

mercurial